예제 #1
0
 void OnMouseDown()
 {
     guitar.ClearGuitar();
     for (int i = 0; i < notes.Length; i++)
     {
         notes[i].GetComponent <SpriteRenderer>().enabled = !notes[i].GetComponent <SpriteRenderer>().enabled;
     }
     guitar.PlayStrings();
 }
예제 #2
0
 public void SelectChord()
 {
     guitar.ClearGuitar();
     for (int i = 0; i < notes.Count; i++)
     {
         notes[i].GetComponent <SpriteRenderer>().enabled = !notes[i].GetComponent <SpriteRenderer>().enabled;
     }
     guitar.PlayStrings();
 }
예제 #3
0
 public void SelectChord(int index)
 {
     guitar.ClearGuitar();
     for (int i = 0; i < chords[index].Count; i++)
     {
         chords[index][i].GetComponent <SpriteRenderer>().enabled = !chords[index][i].GetComponent <SpriteRenderer>().enabled;
     }
     guitar.PlayStrings();
 }