Beispiel #1
0
    public void Initialize(List <GameNote> gameNotes)
    {
        List <NoteObject> noteObjects = new List <NoteObject>();

        foreach (GameNote gameNote in gameNotes)
        {
            NoteObject noteObject = Instantiate(notePrefab).GetComponent <NoteObject>();
            noteObject.transform.parent = this.transform;
            noteObject.Initialize(gameNote);
            noteObject.setColor(laneColor);
            noteObjects.Add(noteObject);
        }
        inactiveNotes = new Queue <NoteObject>(noteObjects);
        activeNotes   = new List <NoteObject>();
    }