Exemple #1
0
    public void Setup()
    {
        this.noteArriveTime      = 1.0f;
        this.enemyProgressIndex  = 0;
        this.playerProgressIndex = 0;
        this.noteObjectList      = new List <NoteObject>();

        for (int i = 0; i < 120; i++)
        {
            NoteObject noteObject = Object.Instantiate <NoteObject>(this.notePrefab, this.noteRoot.transform);
            noteObject.Setup();
            Vector3 pos = noteObject.transform.localPosition;
            pos.z = NoteZ;
            noteObject.transform.localPosition = pos;
            this.noteObjectList.Add(noteObject);
        }
    }