Example #1
0
 private void OnDestroy()
 {
     if (!m_unregisterOnDisable)
     {
         NavMeshBuilder2d.UnregisterGrid(gameObject);
     }
 }
Example #2
0
 private void OnEnable()
 {
     if (m_registerOnEnable)
     {
         NavMeshBuilder2d.RegisterGrid(gameObject);
     }
 }