Esempio n. 1
0
        // Start is called before the first frame update
        private void Awake()
        {
            if (inputField)
            {
                inputField.onSelect.AddListener(Active);
                inputField.onDeselect.AddListener(Deactive);
            }

            _delayedInput = new DelayedFloatInput(timeForMove, false);
        }
        protected virtual void Awake()
        {
            _delayedInput     = new DelayedFloatInput(deltaTime, true);
            _dictonaryOptions = new Dictionary <int, T>();

            if (button && button.OnSelected != null && button.OnDeselected != null)
            {
                button.OnSelected.AddListener(OnSelect);
                button.OnDeselected.AddListener(OnDeselect);
            }

            if (!useFiller)
            {
                FillContent(ref listOptions);
            }
        }