private void OnDestroy() { if (!m_unregisterOnDisable) { NavMeshBuilder2d.UnregisterGrid(gameObject); } }
private void OnEnable() { if (m_registerOnEnable) { NavMeshBuilder2d.RegisterGrid(gameObject); } }