public static Enemy CreateEnemy(Game game, int level, Point pos) { GamePool <Enemy> enemyPool = new GamePool <Enemy>(); enemyPool.Add(ScreamerM2.Create(game, level), 25); Enemy enemy = enemyPool.Get(); enemy.X = pos.X; enemy.Y = pos.Y; return(enemy); }
public void SpawnShoot(Vector2 from, Vector2 to) { var eff = _shootsPool.Get(); eff.Spawn(from, to); }