private void DockOnShip() { this.state = LightShipState.Parked; this.cRigidbody.isKinematic = true; this.motherShip = this.parkingSpot.transform.parent.GetComponent <MotherShip> (); this.cTransform.parent = this.motherShip.transform; }
public void TakeOff() { this.parkingSpot = null; this.state = LightShipState.Flying; this.cRigidbody.isKinematic = false; if (this.motherShip != null) { this.cRigidbody.velocity = this.motherShip.GetVelocity(); } this.cTransform.parent = null; this.motherShip = null; this.currentGrav = null; }
private void DockOnShip () { this.state = LightShipState.Parked; this.cRigidbody.isKinematic = true; this.motherShip = this.parkingSpot.transform.parent.GetComponent<MotherShip> (); this.cTransform.parent = this.motherShip.transform; }
public void TakeOff () { this.parkingSpot = null; this.state = LightShipState.Flying; this.cRigidbody.isKinematic = false; if (this.motherShip != null) { this.cRigidbody.velocity = this.motherShip.GetVelocity (); } this.cTransform.parent = null; this.motherShip = null; this.currentGrav = null; }