private void OnDestroy() { if (this == NavigationGraphComponentContainer.UniqueNavigationGraphComponent) { NavigationGraphComponentContainer.UniqueNavigationGraphComponent = null; } NavigationGraph.free(NavigationGraph); NavigationEngine.free(NavigationEngine); }
public void After() { foreach (Entity l_entity in EntityContainer.Entities) { Entity.markForDestruction(l_entity); EventQueue.enqueueEvent(TestEventQueue, EntityDestroyEvent.alloc(l_entity)); } EventQueue.iterate(TestEventQueue); EventQueue.clearAll(TestEventQueue); _TurnTimeline.TurnTimeline.free(_TurnTimeline.TurnTimelineContainer.UniqueTurnTimeline); NavigationEngine.free(NavigationEngineContainer.UniqueNavigationEngine); NavigationGraph.free(NavigationGraphContainer.UniqueNavigationGraph); TestEventQueue = null; }