protected override void Assign(SongObjectController sCon, SongObject songObject) { NoteController controller = sCon as NoteController; // Assign pooled objects controller.note = (Note)songObject; controller.Activate(); controller.gameObject.SetActive(true); }
private void InitNoteObject(int noteId) { NoteController note = notePool.GetObject(); notes.Add(note); note.gameObject.SetActive(true); note.gameObject.transform.SetParent(noteParentTransform); note.Activate(noteId, chart.notes[noteId], this, pianoSoundsLoader); }