public void MoveToCheckpoint() { transform.position = currentCheckpoint.position; _player.SetInControl(false); StartCoroutine(ReturnControlAfterTime()); _controller.velocity = Vector2.zero; _cameraFollow.SnapToTarget(); }
public void MoveToCheckpoint() { transform.position = currentCheckpoint.position; _player.SetInControl(false); StartCoroutine(ReturnControlAfterTime()); _controller.velocity = Vector2.zero; _cameraFollow.SnapToTarget(); }