Beispiel #1
0
    IEnumerator EndTurn()
    {
        playerUnit.RestMinion();
        enemyUnit.RestMinion();

        //Add resting rounds for minions
        ManageMinionRest(enemyUnit);
        ManageMinionRest(playerUnit);

        if (extracting_simulation_data)
        {
            yield return(new WaitForSeconds(0f));
        }

        else
        {
            yield return(new WaitForSeconds(2f));
        }

        state = BattleState.PLAYERTURN;
        PlayerTurn();
    }