コード例 #1
0
 private void ReleasePlane()
 {
     if (onStartapult)
     {
         foreach (BoxCollider collider in planeColliders)
         {
             if (!collider.isTrigger)
             {
                 collider.enabled = true;
             }
         }
         grabbed = false;
         flying  = true;
         planeMan.ReleasedPlane(startID, true);
         ShowMovementFeedback(showFB);
         startapult = planeOnField.GetComponentInChildren <StartapultRotation>();
         startapult.PlaneOnField = true;
         planeTransform.parent   = startapult.transform;
         planeTransform.rotation = startapult.transform.rotation;
     }
     else
     {
         ResetPlane();
     }
 }