private void ClickDestination() { selector.Check(rayProvider.CreateRay()); if (selector.GetSelection() != null) { hitInfo = selector.GetHitInfo(); SetDestination(hitInfo.point); SetWaypoint(); SetSelected(false); animator.SetBool("IsWalking", true); } }