void OnMouseDown() { guitar.ClearGuitar(); for (int i = 0; i < notes.Length; i++) { notes[i].GetComponent <SpriteRenderer>().enabled = !notes[i].GetComponent <SpriteRenderer>().enabled; } guitar.PlayStrings(); }
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(); }
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(); }