コード例 #1
0
        public override void OnStart(StartState state)
        {
            if (state != StartState.Editor && vessel != null)
            {
                part.force_activate();
                ParkPosition = vessel.transform.position;

                instance = this;
            }
        }
コード例 #2
0
 public override void OnStart(StartState state)
 {
     if (state != StartState.Editor)
     {
         if (vessel != null)
         {
             part.force_activate();
             ParkPosition = vessel.transform.position;
             SetAltitudeToCurrent();
             instance = this;
         }
     }
 }
コード例 #3
0
 public void OnDestroy()
 {
     instance = null;
 }
コード例 #4
0
 private void updateVesselData()
 {
     airParkInstance = AirPark.Instance;
     button.Enabled  = this.enabled = (null != airParkInstance);
     Log.dbg("Tollbar Enabled == {0}", this.enabled);
 }