Exemple #1
0
    public void CreateNote()
    {
        Note = noteObjectPool.GetObject();
        Note.transform.SetParent(bossNoteRespawnPoint.transform, false);
        Note.transform.localScale = Vector3.one;
        Note.transform.position   = new Vector3(fRandomXPos, fRandomYPos, Note.transform.position.z);
        Note.name = "Note";

        NoteObject noteObj = Note.GetComponent <NoteObject> ();

        noteObj.noteObjPull     = noteObjectPool;
        noteObj.parentTransform = bossNoteRespawnPoint;
        noteObj.fTime           = nContinueTime;
        noteObj.repairObj       = repairObj;
        noteObj.bossMusic       = this;
        noteObj.StartNoteObjMove();
        fTime = 0f;

        IncreaseRefectionTime(0.5f);

        nNoteCount++;
    }