コード例 #1
0
    IEnumerator PlayerRest()
    {
        ToggleButtons(false);
        playerUnit.Rest();
        healthText.text      = "Health: " + playerUnit.currentHealth + "/" + playerUnit.maxHealth;
        energyTokenText.text = "Energy: " + playerUnit.currentEnergyTokens + "/" + playerUnit.maxEnergyTokens;
        dialoguePanel.GetComponentInChildren <Text>().text = "You take a rest!";


        attackButton.SetActive(false);
        restButton.SetActive(false);
        yield return(new WaitForSeconds(2f));

        state = CombatState.ENEMYTURN;
        StartCoroutine(EnemyTurn());
    }