public override void Exit()
    {
        enemyReset.ResetActions();
        playerReset.ResetActions();

        UnityEngine.Debug.Log($"Exit {typeof(TurnResolutionState)}");
    }
Пример #2
0
    public override void Enter()
    {
        UnityEngine.Debug.Log($"Enter {typeof(EndResolveTurnState)}");

        enemyActionsReset.ResetActions();
        playerActionsReset.ResetActions();

        if (enemyHealth.CurrentHealth <= 0)
        {
            controller.SwitchState <LevelSetupState>();
        }
        else
        {
            controller.SwitchState <PlayerTurnState>();
        }
    }