IEnumerator ShowFinalScore() { yield return(new WaitForSeconds(3)); textEngine.DrawText(GenerateTextToDisplay().ToArray()); if (onScoreShown != null) { onScoreShown(); } }
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()); }
private void OnDeckConstructed() { textEngine.DrawText(GenerateTextToDisplay().ToArray()); }