Focus() public method

public Focus ( bool val ) : void
val bool
return void
Exemplo n.º 1
0
        public void OnLevelSelected(LevelButton button)
        {
            if (_selectedButton)
            {
                _selectedButton.Focus(false);
                _animator.SetTrigger("HideDifficulty");
            }

            _selectedButton = button;
            _selectedButton.Focus(true);

            _animator.SetTrigger("ShowDifficulty");
        }
        public void OnLevelSelected(LevelButton button)
        {
            if (_selectedButton)
            {
                _selectedButton.Focus(false);
                _animator.SetTrigger("HideDifficulty");
            }

            _selectedButton = button;
            _selectedButton.Focus(true);

            _animator.SetTrigger("ShowDifficulty");
        }