Exemplo n.º 1
0
    public IEnumerator Turn1Event()
    {
        //draw card
        enemyHand.AddCardToHand();
        dialogueManager.StartDialogue(guardsThreateningDialogue);
        yield return(new WaitUntil(() => dialogueManager.HasFinish()));

        turnManager.SwitchToPlayer();
    }
Exemplo n.º 2
0
    private IEnumerator EnemyTurn()
    {
        //draw card
        enemyHand.AddCardToHand();
        yield return(new WaitForSeconds(0.5f));

        if (turnManager.IsGameOver())
        {
            StopAllCoroutines();
        }
        //place card
        PlaceCardInfo placeCardInfo = enemyAI.GetCardPlaceInfo(enemyHand.GetCardList(), spots);

        if (placeCardInfo != null)
        {
            spots[placeCardInfo.spotIndex].GetComponent <FloorSpot>().SetCard(placeCardInfo.card);
            enemyHand.RemoveCardFromhand(placeCardInfo.card);
            yield return(new WaitForSeconds(0.5f));
        }
        yield return(EnemyTurnMoveOrders());
    }