Esempio n. 1
0
 // Token: 0x060048FA RID: 18682 RVA: 0x001861C3 File Offset: 0x001845C3
 protected void onDestroy()
 {
     base.onValueChanged.RemoveListener(new UnityAction <string>(this.ValueChange));
     base.onEndEdit.RemoveListener(new UnityAction <string>(this.ValueEndEdit));
     this.PlusButton  = null;
     this.MinusButton = null;
 }
Esempio n. 2
0
        /// <summary>
        /// Ons the destroy.
        /// </summary>
        protected virtual void onDestroy()
        {
            base.onValueChange.RemoveListener(ValueChange);
            base.onEndEdit.RemoveListener(ValueEndEdit);

            PlusButton  = null;
            MinusButton = null;
        }
Esempio n. 3
0
 // Token: 0x060048F1 RID: 18673 RVA: 0x0018609C File Offset: 0x0018449C
 protected override void Start()
 {
     base.Start();
     base.onValidateInput = new InputField.OnValidateInput(this.IntValidate);
     base.onValueChanged.AddListener(new UnityAction <string>(this.ValueChange));
     base.onEndEdit.AddListener(new UnityAction <string>(this.ValueEndEdit));
     this.PlusButton  = this._plusButton;
     this.MinusButton = this._minusButton;
     this.Value       = this._value;
 }
Esempio n. 4
0
        /// <summary>
        /// Ons the destroy.
        /// </summary>
        protected virtual void onDestroy()
        {
                        #if UNITY_4_6 || UNITY_4_7 || UNITY_5_0 || UNITY_5_1 || UNITY_5_2
            onValueChange.RemoveListener(ValueChange);
                        #else
            onValueChanged.RemoveListener(ValueChange);
                        #endif
            onEndEdit.RemoveListener(ValueEndEdit);

            PlusButton  = null;
            MinusButton = null;
        }
Esempio n. 5
0
        /// <summary>
        /// Start this instance.
        /// </summary>
        protected override void Start()
        {
            base.Start();

            onValidateInput = SpinnerValidate;

            base.onValueChange.AddListener(ValueChange);
            base.onEndEdit.AddListener(ValueEndEdit);

            PlusButton  = _plusButton;
            MinusButton = _minusButton;
            Value       = _value;
        }
Esempio n. 6
0
        /// <summary>
        /// Start this instance.
        /// </summary>
        protected override void Start()
        {
            base.Start();

            onValidateInput = SpinnerValidate;

                        #if UNITY_4_6 || UNITY_4_7 || UNITY_5_0 || UNITY_5_1 || UNITY_5_2
            onValueChange.AddListener(ValueChange);
                        #else
            onValueChanged.AddListener(ValueChange);
                        #endif
            onEndEdit.AddListener(ValueEndEdit);

            PlusButton  = _plusButton;
            MinusButton = _minusButton;
            Value       = _value;
        }
Esempio n. 7
0
        /// <summary>
        /// Init.
        /// </summary>
        public void Init()
        {
            if (isInited)
            {
                return;
            }

            isInited = true;

            InitInputField();

            InputField.Validation   = SpinnerValidate;
            InputField.ValueChanged = ValueChange;
            InputField.ValueEndEdit = ValueEndEdit;

            PlusButton  = plusButton;
            MinusButton = minusButton;
            Value       = SpinnerValue;

            SetTextValue();
        }
Esempio n. 8
0
 /// <summary>
 /// Ons the destroy.
 /// </summary>
 protected virtual void onDestroy()
 {
     PlusButton  = null;
     MinusButton = null;
 }