private void OnDestroy() { _updateSystems.DeactivateReactiveSystems(); _updateSystems.ClearReactiveSystems(); _updateSystems.TearDown(); _fixedUpdateSysems.DeactivateReactiveSystems(); _fixedUpdateSysems.ClearReactiveSystems(); _fixedUpdateSysems.TearDown(); }
private void OnDestroy() { _updateSystems.TearDown(); _updateSystems.DeactivateReactiveSystems(); _updateSystems.ClearReactiveSystems(); _fixedUpdateSystems.TearDown(); _fixedUpdateSystems.DeactivateReactiveSystems(); _fixedUpdateSystems.ClearReactiveSystems(); _lateUpdateSystems.TearDown(); _lateUpdateSystems.DeactivateReactiveSystems(); _lateUpdateSystems.ClearReactiveSystems(); foreach (var context in _contexts.allContexts) { // if (!(context is ConfigContext)) { context.Reset(); // } } // _contexts.Reset(); }