private static extern bool INTERNAL_CALL_Raycast(NavMeshAgent self, ref Vector3 targetPosition, out NavMeshHit hit); [MethodImpl(MethodImplOptions.InternalCall), WrapperlessIcall]
public bool Raycast(Vector3 targetPosition, out NavMeshHit hit) { return(NavMeshAgent.INTERNAL_CALL_Raycast(this, ref targetPosition, out hit)); }