Exemple #1
0
    public override void Enter()
    {
        StartedSetup?.Invoke();
        MusicController.Instance.StopMusic();
        // CANT change state while still in Enter/Exit
        // DONT put ChangeState<> here
        _board.ClearBoard();
        StateMachine.Player.SetDefaults();
        StateMachine.Player.SetupAbilityDeck(_playerAbilityDeck);
        StateMachine.Player.SetupBoostDeck(_playerBoostDeck);
        StateMachine.Enemy.SetDefaults();
        StateMachine.Enemy.SetupAbilityDeck(_enemyAbilityDeck);
        StateMachine.Enemy.SetupBoostDeck(_enemyBoostDeck);

        if (_nextButton != null)
        {
            _nextButton.onClick.AddListener(ToBoostState);
        }
    }