示例#1
0
    private void enableLetter(LevelSection section)
    {
        int letters = section.letterPlaceholders.Count;
        int r       = (int)(Time.deltaTime * 100);
        LetterController selected = section.letterPlaceholders[r % letters];

        if (selected == null)
        {
            return;
        }

        string nextLetter = letterManager.GetNextLetter();

        if (nextLetter != null)
        {
            selected.SetLetter(nextLetter);
        }
    }