OldBlueWater/BlueWater/Assets/NWH/Common/Scripts/Vehicle/ShowInSettings.cs

41 lines
829 B
C#
Raw Normal View History

2023-12-19 02:31:29 +00:00
using System;
namespace NWH.Common.Vehicles
{
[AttributeUsage(AttributeTargets.Field)]
public partial class ShowInSettings : Attribute
{
public string name;
public float min;
public float max = 1f;
public float step = 0.1f;
public ShowInSettings(string name)
{
this.name = name;
}
public ShowInSettings(float min, float max, float step = 0.1f)
{
this.min = min;
this.max = max;
this.step = step;
}
public ShowInSettings(string name, float min, float max, float step = 0.1f)
{
this.name = name;
this.min = min;
this.max = max;
this.step = step;
}
public ShowInSettings()
{
}
}
}