Beispiel #1
0
 void FixedUpdate()
 {
     if (useFixedUpdate)
     {
         InputManager.UpdateInternal();
     }
 }
Beispiel #2
0
 void Update()
 {
     if (!useFixedUpdate || Mathf.Approximately(Time.timeScale, 0.0f))
     {
         InputManager.UpdateInternal();
     }
 }
 void Update()
 {
     if (!useFixedUpdate || Utility.IsZero(Time.timeScale))
     {
         InputManager.UpdateInternal();
     }
 }
Beispiel #4
0
 void FixedUpdate()
 {
     if (IsNotTheSingleton)
     {
         return;
     }
     if (useFixedUpdate)
     {
         InputManager.UpdateInternal();
     }
 }
Beispiel #5
0
 void Update()
 {
     if (IsNotTheSingleton)
     {
         return;
     }
     if (!useFixedUpdate || Utility.IsZero(Time.timeScale))
     {
         InputManager.UpdateInternal();
     }
 }
Beispiel #6
0
 private void FixedUpdate()
 {
     lock (mouseLock)
     {
         mouseValue       = mouseAccumulator;
         mouseAccumulator = Vector3.zero;
     }
     if (useFixedUpdate)
     {
         InputManager.UpdateInternal();
     }
 }
Beispiel #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();
     }
 }
Beispiel #8
0
 void FixedUpdate()
 {
     if (IsNotTheSingleton)
     {
         return;
     }
     if (applicationHasQuit)
     {
         return;
     }
     if (updateMode == InControlUpdateMode.FixedUpdate)
     {
         InputManager.UpdateInternal();
     }
 }
Beispiel #9
0
 void Update()
 {
     if (IsNotTheSingleton)
     {
         return;
     }
     if (applicationHasQuit)
     {
         return;
     }
     if (updateMode == InControlUpdateMode.Default || (updateMode == InControlUpdateMode.FixedUpdate && Utility.IsZero(Time.timeScale)))
     {
         InputManager.UpdateInternal();
     }
 }