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