Exemple #1
0
    IEnumerator WaitForEndOfTurn()
    {
        Debug.Log("In Wait for End Of Turn");
        yield return(new WaitUntil(() => turnInProgress == false));

        turnInProgress = true;
        Debug.Log("Switching to Monster Turn");
        if (monsterWP <= 6)
        {
            monsterDice.SetDice(2);
        }
        else
        {
            monsterDice.SetDice(3);
        }
        StartCoroutine(monsterDice.AutoRoll());
    }