public bool SetDestination(Vector3 worldSpaceDestination, bool local = false)
    {
        if (pathfindingManager == null)
        {
            Debug.LogError("No pathfinding manager setup in pathfinding agent: " + name);
            return(false);
        }

        m_CurrentIndex = 0;
        m_Alpha        = 0.0f;

        m_HasPath = pathfindingManager.FindPath(transform.position, worldSpaceDestination, ref m_Path, local);
        if (m_HasPath)
        {
            m_Local        = local;
            m_CurrentIndex = 0;
            m_Alpha        = 0.0f;
        }
        // Added by Chris to enable looting when already standing near object
        else if (pathfindingManager.GetNode(transform.position) == pathfindingManager.GetNode(worldSpaceDestination))
        {
            onReachedDestination.Invoke();
        }

        return(m_HasPath);
    }