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