private void OnGUI() { if (GUI.Button(new Rect(0, Screen.height - 30, 200, 20), "Spawn Enemy")) { Transform e = Instantiate(ENEMEY) as Transform; e.gameObject.AddComponent <SphereCollider>(); BotMover2 bm = e.gameObject.AddComponent <BotMover2>(); bm.Init(); Enemys.Add(bm); enemysComplete++; } }
public void RemoveEnemy(BotMover2 enemy) { Enemys.Remove(enemy); }
public void RemoveEnemy( BotMover2 enemy ) { Enemys.Remove( enemy ); }