/// <summary> /// Adds the process function of the mobile input to the invocation list of the OnUpdate action and sets up the TiltEventDetector. /// </summary> private void Setup() { if (IsFirstModuleInHierarchy()) { CreateDefaultReactionComponent(); RemoveDuplications(); OnUpdate += MobileInput.Process; TiltEventDetector.Setup(LoadSettings()); } }
/// <summary> /// Checks input for tilt events and calls its evaluation. /// </summary> private static void CheckTiltInputEvents() => TiltEventDetector.CallOngoingTiltEvaluation(DeviceAcceleration);