Beispiel #1
0
        private void Scene_objectAdded(object sender, EventArgs e)
        {
            var obj = (e as SceneEventArgs).sceneObject;

            if (obj is MeleeStudent melee)
            {
                if (melee.Owner != _aiBase)
                {
                    UnitSpawner.SpawnMeleeUnit(_aiBase);
                }
            }
        }
Beispiel #2
0
 private void Melee_Clicked(object sender, EventArgs e)
 {
     UnitSpawner.SpawnMeleeUnit(level.player1Base);
 }