void Awake() { if (!string.IsNullOrEmpty(inputSignal)) { avionicsUpdatedAction = KerbalVR.Events.AvionicsFloatAction(inputSignal, OnAvionicsInput); } }
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); }
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); }
void Awake() { // define events to listen onManipulatorLeftUpdatedAction = KerbalVR.Events.ManipulatorLeftUpdatedAction(OnManipulatorLeftUpdated); onManipulatorRightUpdatedAction = KerbalVR.Events.ManipulatorRightUpdatedAction(OnManipulatorRightUpdated); }