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