Exemple #1
0
    public void EndTurnButton()
    {
        if (state != BattleState.PLAYERTURN)
        {
            return;
        }

        endTurnbutton.SetActive(false);

        playerUnit.GainEnergy(3);
        playerHUD.SetEnergy(playerUnit.currentEnergy);
        StartCoroutine(EndTurn());
    }