public static EsxolusBMissile addExsolusBMissile(EsxolusBMissile bomb) { availableExsolusBMissiles.Enqueue(bomb); return bomb; }
public static EsxolusBMissile spawnEsxolusBMissile(long seed, Vector3 position, Quaternion rotation, SceneObject parent) { EsxolusBMissile rBomb = null; if (availableExsolusBMissiles.Count == 0) { rBomb = new EsxolusBMissile(seed, position, rotation); rBomb.respawn(seed, position, rotation, parent); } else { rBomb = (EsxolusBMissile)availableExsolusBMissiles.Dequeue(); rBomb.respawn(seed, position, rotation, parent); } return ((EsxolusBMissile)Space394Game.GameInstance.CurrentScene.addSceneObject(rBomb)); }