Esempio n. 1
0
        /// <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());
            }
        }
Esempio n. 2
0
 /// <summary>
 /// Checks input for tilt events and calls its evaluation.
 /// </summary>
 private static void CheckTiltInputEvents() => TiltEventDetector.CallOngoingTiltEvaluation(DeviceAcceleration);