Esempio n. 1
0
    public IEnumerator PlayBattle(BasicCard firstCard, BasicCard secondCard)
    {
        yield return(null);

        //カード名表示
        battleCanvas.ShowBattleCardName(firstCard);
        yield return(StartCoroutine(firstCard.Play()));

        if (gameSystem.FinishGame())
        {
            yield break;
        }

        //カード名表示
        battleCanvas.ShowBattleCardName(secondCard);
        yield return(StartCoroutine(secondCard.Play()));

        if (isSameCost)
        {
            randomFirst.ChangeRandomer();
        }
    }