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