示例#1
0
        private void OnDisable()
        {
            _systems.TearDown();
            _systems.DeactivateReactiveSystems();
            _systems.ClearReactiveSystems();

            _systems = null;
        }
示例#2
0
 //ECS
 public void TearDown()
 {
     systems.DeactivateReactiveSystems();
     systems.TearDown();
     systems.ClearReactiveSystems();
     contexts.UnsubscribeId();
     ContextsPool.RetrieveContexts(contexts);
 }
示例#3
0
        public void StopSystems()
        {
            if (systems == null)
            {
                return;
            }

            systems.DeactivateReactiveSystems();
            systems.TearDown();
            systems.ClearReactiveSystems();
        }
 private void OnDestroy() =>
 systems.TearDown();