コード例 #1
0
        protected override void onPartFixedUpdate()
        {
            base.onPartFixedUpdate();
            var commander = VesselCommander.GetInstance(this.vessel).EngineCommander;

            Events["DisableCommander"].active = commander.IsActive;
            Events["EnableCommander"].active  = !commander.IsActive;
        }
コード例 #2
0
 public void DisableCommander()
 {
     Events["DisableCommander"].active = false;
     Events["EnableCommander"].active  = true;
     VesselCommander.GetInstance(this.vessel).EngineCommander.IsActive = false;
 }