private void Start() { _player = Player.Instance; _player.GetNavMeshAgent().speed = _player.GetCharacterInfo().Speed; _player.GetNavMeshAgent().angularSpeed = _player.GetCharacterInfo().AngularSpeed; _player.GetNavMeshAgent().acceleration = _player.GetCharacterInfo().Acceleration; }
private void LeftMouseButton() { if (GettingPoint(out var hitInfo)) { return; } _player.GetNavMeshAgent().isStopped = false; _isRotationNavMeshAgent = true; var clickWordPoint = hitInfo.point; _player.GetNavMeshAgent().SetDestination(clickWordPoint); }