private void OnPlayerDead(GameSubState subState) { playerTurnState.Deactivate(); enemyTurnState.Deactivate(); TransitionToState(gameOverState); }
private void OnTurnEnded(GameSubState subState) { if (subState == enemyTurnState) { playerTurnState.Activate(); enemyTurnState.Deactivate(); } if (subState == playerTurnState) { enemyTurnState.Activate(); playerTurnState.Deactivate(); } }