Example #1
0
    IEnumerator ShowFinalScore()
    {
        yield return(new WaitForSeconds(3));

        textEngine.DrawText(GenerateTextToDisplay().ToArray());

        if (onScoreShown != null)
        {
            onScoreShown();
        }
    }
Example #2
0
    void DrawScore(int score)
    {
        Queue <AvailableTextType> text = new Queue <AvailableTextType>();

        text.Enqueue(AvailableTextType.S);
        text.Enqueue(AvailableTextType.C);
        text.Enqueue(AvailableTextType.O);
        text.Enqueue(AvailableTextType.R);
        text.Enqueue(AvailableTextType.E);

        text.Enqueue(AvailableTextType.Space);

        AvailableTextType[] scoreArray = textEngine.ConvertNumberToText(score, 4).ToArray();

        for (int i = 0; i < scoreArray.Length; i++)
        {
            AvailableTextType character = scoreArray[i];
            text.Enqueue(character);
        }

        textEngine.DrawText(text.ToArray());
    }
Example #3
0
 private void OnDeckConstructed()
 {
     textEngine.DrawText(GenerateTextToDisplay().ToArray());
 }