Example #1
0
 void FixedUpdate()
 {
     if (useFixedUpdate)
     {
         InputManager.UpdateInternal();
     }
 }
Example #2
0
 void Update()
 {
     if (!useFixedUpdate || Mathf.Approximately(Time.timeScale, 0.0f))
     {
         InputManager.UpdateInternal();
     }
 }
 void Update()
 {
     if (!useFixedUpdate || Utility.IsZero(Time.timeScale))
     {
         InputManager.UpdateInternal();
     }
 }
Example #4
0
 void FixedUpdate()
 {
     if (IsNotTheSingleton)
     {
         return;
     }
     if (useFixedUpdate)
     {
         InputManager.UpdateInternal();
     }
 }
Example #5
0
 void Update()
 {
     if (IsNotTheSingleton)
     {
         return;
     }
     if (!useFixedUpdate || Utility.IsZero(Time.timeScale))
     {
         InputManager.UpdateInternal();
     }
 }
Example #6
0
 private void FixedUpdate()
 {
     lock (mouseLock)
     {
         mouseValue       = mouseAccumulator;
         mouseAccumulator = Vector3.zero;
     }
     if (useFixedUpdate)
     {
         InputManager.UpdateInternal();
     }
 }
Example #7
0
 private void Update()
 {
     lock (mouseLock)
     {
         mouseAccumulator.x += Input.GetAxisRaw("mouse x");
         mouseAccumulator.y += Input.GetAxisRaw("mouse y");
         mouseAccumulator.z += Input.GetAxisRaw("mouse z");
     }
     if (!useFixedUpdate || Utility.IsZero(Time.timeScale))
     {
         InputManager.UpdateInternal();
     }
 }
Example #8
0
 void FixedUpdate()
 {
     if (IsNotTheSingleton)
     {
         return;
     }
     if (applicationHasQuit)
     {
         return;
     }
     if (updateMode == InControlUpdateMode.FixedUpdate)
     {
         InputManager.UpdateInternal();
     }
 }
Example #9
0
 void Update()
 {
     if (IsNotTheSingleton)
     {
         return;
     }
     if (applicationHasQuit)
     {
         return;
     }
     if (updateMode == InControlUpdateMode.Default || (updateMode == InControlUpdateMode.FixedUpdate && Utility.IsZero(Time.timeScale)))
     {
         InputManager.UpdateInternal();
     }
 }