예제 #1
0
        public override void OnEnable()
        {
            base.OnEnable();

            _reference = (RangeVariable)target;

            if (_reference == null)
            {
                return;
            }

            DeveloperDescription = serializedObject.FindProperty("DeveloperDescription");
            Value = serializedObject.FindProperty("Value");

            min = serializedObject.FindProperty("min");
            max = serializedObject.FindProperty("max");
        }
예제 #2
0
 public void ApplyChange(RangeVariable amount)
 {
     Value += amount.Value;
 }
예제 #3
0
 public void SetValue(RangeVariable value)
 {
     Value = value.Value;
 }