Пример #1
0
    private void PlayPatternAnimation()
    {
        int iteration = 1;

        foreach (GameObject obj in _currentPattern)
        {
            OptionsController optionsController = obj.GetComponent <OptionsController>();
            StartCoroutine(optionsController.LightUpForTwoSeconds());

            iteration++;
            if (iteration > _currentStreak)
            {
                break;
            }
        }
    }