private IEnumerator CheckInputs() { TweenUtil.SetDefaultLerpPeriodByFramerate(60); while (true) { Vector3 screenPoint = Input.mousePosition; screenPoint.z = 10; Vector3 mousePoint = Camera.main.ScreenToWorldPoint(screenPoint); transform.position = Vector3.LerpUnclamped(transform.position, mousePoint, TweenUtil.Lerp(0.25f)); if (Input.GetKeyDown(KeyCode.Alpha1)) { CycleRoutineUpdate(ref m_Update1, true); } else if (Input.GetKeyDown(KeyCode.Alpha2)) { CycleRoutineUpdate(ref m_Update2, true); } else if (Input.GetKeyDown(KeyCode.Alpha0)) { CycleRoutineUpdate(ref m_MasterUpdate, false); } if (Input.GetKey(KeyCode.Space)) { m_Update1.TryManuallyUpdate(Routine.DeltaTime * 2); m_Update2.TryManuallyUpdate(Routine.DeltaTime * 2); } yield return(Routine.WaitForUpdate()); } }