public void Launch(Launchable l, Vector3 direction, float forceAmount) { if (l != null) { l.Launch(direction, forceAmount); } }
public void LaunchNext(Vector3 direction, float forceAmount) { Launchable l = null; for (int i = 0; i < this.LaunchableObjects.Length; i++) { if (this.LaunchableObjects[i] != null) { l = this.LaunchableObjects[i]; this.LaunchableObjects[i] = null; break; } } if (l != null) { this.Launch(l, direction, forceAmount); } Orbital.CameraSwitcher.Instance.LoadPlanetView(); }