Example #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");
        }
 public void ApplyChange(RangeVariable amount)
 {
     Value += amount.Value;
 }
 public void SetValue(RangeVariable value)
 {
     Value = value.Value;
 }