public void setNote(int note, int pos) { NoteUIManager n = notes[pos].transform.GetComponent <NoteUIManager>(); n.setNote(note); }