public void GenerateNote(Phase pase)
    {
        int amount = Mathf.Clamp(noteAmount - cur_IndexNote, 1, 6);

        if (pase == Phase.player)
        {
            for (int i = 0; i < amount; i++)
            {
                int         ran_note = Random.Range(0, noteGenerateCode_weap.Length);
                NoteChecker note     = Instantiate(notePerf, notePlace);
                note.InitialNote(noteGenerateCode_weap[ran_note]);
                generatedNote.Add(note);
            }
        }
        else
        {
            for (int i = 0; i < amount; i++)
            {
                int         ran_note = Random.Range(0, noteGenerateCode_armor.Length);
                NoteChecker note     = Instantiate(notePerf, notePlace);
                note.InitialNote(noteGenerateCode_armor[ran_note]);
                generatedNote.Add(note);
            }
        }
    }
Exemple #2
0
    private void Awake()
    {
        m_Instance = this;

        m_NoteSpawner = GetComponent <NoteSpawner>();
        m_NoteChecker = GetComponent <NoteChecker>();
        m_SongManager = GetComponent <SongManager>();
        m_GameManager = GetComponent <GameManager>();
    }
Exemple #3
0
    //초기화처리//

    void FindComponentAndManager()
    {
        arrowMakeAndDestroy = this.GetComponent <ArrowMakeAndDestroy>();
        noteChecker         = this.GetComponent <NoteChecker>();
        difficultyManager   = GameObject.Find("DifficultyManager").GetComponent <DifficultyManager>();
    }
Exemple #4
0
 public void SetChecker(NoteChecker chekcer)
 {
     this.checker = chekcer;
 }