public void SpawnMeteorOutOfObject(IAvaiableForEnemySpawn _object) { Meteor newMeteor = ObjectSpawner.SpawnMeteor(_object.GetPosition()); SimulationInstance.enemyObjects.Add(newMeteor); newMeteor.SetupPlayerTransform(SimulationInstance.Player.transform); newMeteor.LaunchStartupKick(_object.GetSpawnKickTargetPosition()); newMeteor.ToggleToMoveTowardsPlayer(); }
public void SpawnBomberOutOfObject(IAvaiableForEnemySpawn _object) { Bomber newBomber = ObjectSpawner.SpawnBomber(_object.GetPosition()); SimulationInstance.enemyObjects.Add(newBomber); newBomber.SetupPlayerTransform(SimulationInstance.Player.transform); newBomber.SetupPlayersOrbitationWheel(SimulationInstance.Player.OrbitationWheel); newBomber.LaunchStartupKick(_object.GetSpawnKickTargetPosition()); newBomber.ToggleToMoveTowardsPlayer(); }