public static void Init(World world, ContentManager content) { Random rand = new Random(); for (int i = 0; i < GamePlay.enemy_count; i++) { Graphics.Entity.Model model = new Graphics.Entity.Model(); model.Init(content.Load <Model>("enemy/enemy")); Entity_Enemy new_enemy = new Entity_Enemy(model); new_enemy.setSoundKill = content.Load <SoundEffect>("crit_death" + rand.Next(1, 5)); new_enemy.position = GamePlay.get_enemy(i).Position; new_enemy.rotation = GamePlay.get_enemy(i).Rotation; new_enemy.waypoint = GamePlay.get_enemy(i).WayPoint; m_enemy.Add(new_enemy); world.AddEntity(new_enemy); } }
public static void Init(World world, ContentManager content) { Random rand = new Random(); for (int i = 0; i < GamePlay.enemy_count; i++) { Graphics.Entity.Model model = new Graphics.Entity.Model(); model.Init(content.Load<Model>("enemy/enemy")); Entity_Enemy new_enemy = new Entity_Enemy(model); new_enemy.setSoundKill = content.Load<SoundEffect>("crit_death" + rand.Next(1, 5)); new_enemy.position = GamePlay.get_enemy(i).Position; new_enemy.rotation = GamePlay.get_enemy(i).Rotation; new_enemy.waypoint = GamePlay.get_enemy(i).WayPoint; m_enemy.Add(new_enemy); world.AddEntity(new_enemy); } }