Пример #1
0
 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;
 }
Пример #2
0
 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;
 }
Пример #3
0
		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;
		}
Пример #4
0
		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;
		}