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); }
public void StopWave(HumanAIWave wave) { this.m_ActiveWaves.Remove(wave); UnityEngine.Object.Destroy(wave.gameObject); }