Inheritance: MonoBehaviour
Example #1
0
    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++;
        }
    }
Example #2
0
 public void RemoveEnemy(BotMover2 enemy)
 {
     Enemys.Remove(enemy);
 }
Example #3
0
 public void RemoveEnemy( BotMover2 enemy )
 {
     Enemys.Remove( enemy );
 }