Ejemplo n.º 1
0
    IEnumerator ResumeGame(ArrayList toLightOn, int toLightOff)
    {
        yield return(new WaitForSeconds(1));

        floorManager.LightOff(toLightOff);
        foreach (int note in toLightOn)
        {
            floorManager.LightOn(note, false);
            if (!Constants.Endless)
            {
                PlayNote(note);
                string noteName = PitchManager.NoteToName(note);
                UpText.text   = noteName;
                DownText.text = noteName;
            }
        }

        if (Constants.Endless)
        {
            Constants.GameOn = true;
        }
        else
        {
            if (toLightOn.Count > 0 || clients.Count == 0)
            {
                curIdx++;
                UpdateTarget();
            }
            else
            {
                Constants.GameOn = true;
            }
        }
    }