void FixedUpdate() { distance = (transform.position.x - center.transform.position.x) * (-1f); force = distance * 100f; time = Mathf.Clamp(distance / 5f, 0.8f, 2.5f); TimeManager.AlterTime(1 / time); }