private static NavMeshLocation MoveLocation(IntPtr navMeshQuery, NavMeshLocation location, Vector3 target, int areaMask) { NavMeshLocation result; NavMeshQuery.MoveLocation_Injected(navMeshQuery, ref location, ref target, areaMask, out result); return(result); }