public static HalkIMissile addHalkIMissile(HalkIMissile missile) { availableHalkIMissiles.Enqueue(missile); return missile; }
public static HalkIMissile spawnHalkIMissile(long seed, Vector3 position, Quaternion rotation, SceneObject parent) { HalkIMissile rSecondaryAttack = null; if (availableHalkIMissiles.Count == 0) { rSecondaryAttack = new HalkIMissile(seed, position, rotation); rSecondaryAttack.respawn(seed, position, rotation, parent); } else { rSecondaryAttack = (HalkIMissile)availableHalkIMissiles.Dequeue(); rSecondaryAttack.respawn(seed, position, rotation, parent); } return ((HalkIMissile)Space394Game.GameInstance.CurrentScene.addSceneObject(rSecondaryAttack)); }