Exemple #1
0
 public Header()
 {
     VolumeWav   = 100;
     Bpm         = 130;
     Rank        = 2;
     LongNote    = new LongNoteInfo();
     WavFiles    = new Dictionary <string, AudioClip>();
     BmpFiles    = new Dictionary <string, string>();
     StopCommand = new Dictionary <string, double>();
     BpmCommand  = new Dictionary <string, double>();
 }
Exemple #2
0
    private bool HandleInputDown(int i)
    {
        // Cuando toquemos una tecla revisamos si hay una nota o no que nos queda para tocar
        if (currentNotesLeft.Get(i))
        {
            // Si hay una nota seteamos el bitArray de notas que nos quedan en ese bit
            // como falso y llamamos el evento de hit.
            currentNotesLeft.Set(i, false);
            currentGroup.CallNoteEvent(NoteEventType.Hit, i);

            // Si es una nota larga, la añadimos al array de notas largas
            if (currentGroup.IsLongNote)
            {
                //Debug.Log("Long note start");
                currentLongNotes[i] = new LongNoteInfo(currentGroup, currentGroupIndex);
            }

            // Add the score and the note streak
            AddScore(tapScoreAmount);
            IncrementNoteStreak();

            // Si no quedan notas, pasamos al siguiente grupo
            if (!AreNotesLeft())
            {
                GetNextGroup();
            }

            return(true);
        }
        else
        {
            // Si teniamos que tocar esa nota, fallamos el grupo actual
            MissCurrentGroup();
            return(false);
        }
    }