Esempio n. 1
0
        public HumanAIWave SpawnWave(int count, bool hallucination = false)
        {
            GameObject  gameObject  = new GameObject("AIWave");
            HumanAIWave humanAIWave = gameObject.AddComponent <HumanAIWave>();

            humanAIWave.m_Count         = count;
            humanAIWave.m_Hallucination = hallucination;
            humanAIWave.Initialize();
            this.m_ActiveWaves.Add(humanAIWave);
            return(humanAIWave);
        }
Esempio n. 2
0
 public void StopWave(HumanAIWave wave)
 {
     this.m_ActiveWaves.Remove(wave);
     UnityEngine.Object.Destroy(wave.gameObject);
 }