IEnumerator CountdownAndSetRandomState()
    {
        while (true)
        {
            // Count down from 3 with sprites
            for (int i = 3; i > 0; i--)
            {
                handImage.sprite = NumberImageFactory.getNumberSprite(i, false);
                yield return(new WaitForSeconds(1));
            }

            // Set a random state to the hand
            setRandomHandState();
            yield return(new WaitForSeconds(3));
        }
    }
Beispiel #2
0
 void updatePlayerScoreSprite()
 {
     playerScoreImage.sprite = NumberImageFactory.getNumberSprite(playerScore, true);
 }
Beispiel #3
0
 void updateEnemyScoreSprite()
 {
     enemyScoreImage.sprite = NumberImageFactory.getNumberSprite(enemyScore, false);
 }