Exemplo n.º 1
0
    private void InvokeNote()
    {
        List <NoteMusicSheet> notes = musicSheet.getNotes(actualMeasure, actualBeat, partBeat);

        if (notes == null)
        {
            return;
        }
        foreach (NoteMusicSheet note_musicsheet in notes)
        {
            GameObject aux = Instantiate(note, GameObject.FindGameObjectWithTag("Triggers").GetComponent <Transform>());
            aux.name = aux.transform.name.Replace("(Clone)", "");
            aux.GetComponent <Note>().Initialize(note_musicsheet.Note, initPositionNotes, speed, note_musicsheet.Finger);
            Destroy(aux, tempoSong * 8);
        }
    }