private void OnDisable() { _systems.TearDown(); _systems.DeactivateReactiveSystems(); _systems.ClearReactiveSystems(); _systems = null; }
//ECS public void TearDown() { systems.DeactivateReactiveSystems(); systems.TearDown(); systems.ClearReactiveSystems(); contexts.UnsubscribeId(); ContextsPool.RetrieveContexts(contexts); }
public void StopSystems() { if (systems == null) { return; } systems.DeactivateReactiveSystems(); systems.TearDown(); systems.ClearReactiveSystems(); }