Example #1
0
    void PlayGame()
    {
        state = GameState.MATCHING_PLAYERS;

        cardSelection.GetComponent <SpriteRenderer>().enabled = false;

        switch (selected)
        {
        case CardType.ROCK:
            scissor.FadeOut();
            paper.FadeOut();
            break;

        case CardType.SCISSOR:
            rock.FadeOut();
            paper.FadeOut();
            scissor.ScissorMoveLeft();
            break;

        case CardType.PAPER:
            scissor.FadeOut();
            rock.FadeOut();
            paper.PaperMoveLeft();
            break;
        }

        AdjustRoundCounterText(1);

        computer.ComputerPlayCard();

        StartCoroutine("WaitGameValidation");
    }