Exemplo n.º 1
0
 private void ChangeOption(int i)
 {
     _currentOption.StopTween();
     _index         = (int)Mathf.Repeat(_index + i, _count);
     _currentOption = _options[_index];
     _currentOption.PlayTween();
 }
Exemplo n.º 2
0
        private void Awake()
        {
            _input = GC.Input;

            // Set up option count
            _index         = 0;
            _count         = _options.Length;
            _currentOption = _options[_index];

            // Create tweens
            foreach (MenuOption option in _options)
            {
                option.CreateTween(_fadeTo, _duration, _easeType);
            }
        }