예제 #1
0
        private void Start()
        {
            _player = Player.Instance;

            _player.GetNavMeshAgent().speed        = _player.GetCharacterInfo().Speed;
            _player.GetNavMeshAgent().angularSpeed = _player.GetCharacterInfo().AngularSpeed;
            _player.GetNavMeshAgent().acceleration = _player.GetCharacterInfo().Acceleration;
        }
예제 #2
0
        private void LeftMouseButton()
        {
            if (GettingPoint(out var hitInfo))
            {
                return;
            }
            _player.GetNavMeshAgent().isStopped = false;
            _isRotationNavMeshAgent = true;
            var clickWordPoint = hitInfo.point;

            _player.GetNavMeshAgent().SetDestination(clickWordPoint);
        }