コード例 #1
0
 void Awake()
 {
     if (!string.IsNullOrEmpty(inputSignal))
     {
         avionicsUpdatedAction = KerbalVR.Events.AvionicsFloatAction(inputSignal, OnAvionicsInput);
     }
 }
コード例 #2
0
        void Awake()
        {
            // start emitting signals to components
            outputSignalsCoroutine = StartCoroutine(OutputSignals());

            stageUpdatedAction         = KerbalVR.Events.AvionicsIntAction("stage", OnStageInput);
            sasUpdatedAction           = KerbalVR.Events.AvionicsIntAction("sas", OnSASInput);
            precisionModeUpdatedAction = KerbalVR.Events.AvionicsIntAction("precision_mode", OnPrecisionModeInput);
        }
コード例 #3
0
        void Awake()
        {
            Utils.Log("KVR_AvionicsComputer booting up.");

            outputSignalsCoroutine = StartCoroutine(OutputSignals());

            stageUpdatedAction         = KerbalVR.Events.AvionicsIntAction("stage", OnStageInput);
            sasUpdatedAction           = KerbalVR.Events.AvionicsIntAction("sas", OnSASInput);
            precisionModeUpdatedAction = KerbalVR.Events.AvionicsIntAction("precision_mode", OnPrecisionModeInput);
        }
コード例 #4
0
ファイル: KVR_ControlStick.cs プロジェクト: gomker/Kerbal-VR
 void Awake()
 {
     // define events to listen
     onManipulatorLeftUpdatedAction  = KerbalVR.Events.ManipulatorLeftUpdatedAction(OnManipulatorLeftUpdated);
     onManipulatorRightUpdatedAction = KerbalVR.Events.ManipulatorRightUpdatedAction(OnManipulatorRightUpdated);
 }