public void EndTurnButton() { if (state != BattleState.PLAYERTURN) { return; } endTurnbutton.SetActive(false); playerUnit.GainEnergy(3); playerHUD.SetEnergy(playerUnit.currentEnergy); StartCoroutine(EndTurn()); }