コード例 #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;
 }