Esempio n. 1
0
    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);
    }
Esempio n. 2
0
    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);
    }