diff --git a/Assets/Scripts/BaseCameraController.cs b/Assets/Scripts/BaseCameraController.cs index ca53edbedc9c9a24fbdf4fde03cfb5955e12b909..9138d25558a756c9f971019d22d95ca84be249f9 100644 --- a/Assets/Scripts/BaseCameraController.cs +++ b/Assets/Scripts/BaseCameraController.cs @@ -72,7 +72,7 @@ public class BaseCameraController : MonoBehaviour void Update() { - if (Input.GetKeyDown(KeyCode.Z)) // TODO Remove evntually + if (Input.GetKeyDown(KeyCode.Z)) // TODO Remove eventually { var player = GameObject.FindGameObjectWithTag("Player"); AnimateToPosition(player.transform.position + new Vector3(0f, 0.75f), 1.5f, 0.1f); diff --git a/Assets/Scripts/utils/Interpolator.cs b/Assets/Scripts/utils/Interpolator.cs index a07a5c29b82dd7e2ebd7ed0a3a85fd326133a0dc..bfbb2436aec9a9016c9c45322a43ac9db50677b2 100644 --- a/Assets/Scripts/utils/Interpolator.cs +++ b/Assets/Scripts/utils/Interpolator.cs @@ -14,7 +14,7 @@ public class Interpolator set { var newValue = Mathf.Clamp(value, minValue, maxValue); - if (!Mathf.Approximately(newValue, _targetValue)) + if (!Mathf.Approximately(newValue, _targetValue) || !Mathf.Approximately(newValue, currentValue)) { _targetValue = newValue; running = true;