12345678910111213141516171819202122232425262728293031 |
- using System;
- namespace Leap.Unity.Attributes
- {
- public class MinMax : CombinablePropertyAttribute, IFullPropertyDrawer
- {
- public MinMax(float min, float max)
- {
- this.min = min;
- this.max = max;
- this.isInt = false;
- }
- public MinMax(int min, int max)
- {
- this.min = (float)min;
- this.max = (float)max;
- this.isInt = true;
- }
- public const float PERCENT_NUM = 0.2f;
- public const float SPACING = 3f;
- public readonly float min;
- public readonly float max;
- public readonly bool isInt;
- }
- }
|