Game/Assets/Scripts/Player/Player_Movement.cs
/// <summary>
/// Attempts to move player to the mouse position
/// </summary>
/// <param name="rayInfo"></param>
Attempts to move player to the mouse position
Attempts to move player to the mouse position
public override void Move(RaycastHit rayInfo)
    {
        _navMeshAgent.destination = rayInfo.point;                 
        if (Mathf.Abs(_navMeshAgent.remainingDistance) <= 1f)      
        {
            _navMeshAgent.stoppingDistance = 0f;
        }
    }
public override void Move ( RaycastHit rayInfo ) { _navMeshAgent . destination = rayInfo . point ; if ( Mathf . Abs ( _navMeshAgent . remainingDistance ) <= 1f ) { _navMeshAgent . stoppingDistance = 0f ; } }
Attempts to move player to the mouse position
Attempts to move player to the mouse position
// Set the destination of the navmesh to this point and move to it // Prevents the movement animation from playing in the same spot
rayInfo
RaycastHit
None