コード例 #1
0
 private void OnDisable()
 {
     if (_systems != null)
     {
         _systems.Destroy();
         _systems = null;
         _world.Destroy();
         _world = null;
     }
 }
コード例 #2
0
 void OnDisable()
 {
     _systems.Destroy();
     _systems = null;
     _world.Destroy();
     _world = null;
 }
コード例 #3
0
 void OnDestroy()
 {
     // destroy systems logical group.
     _systems.Destroy();
     // destroy world.
     _world.Destroy();
 }
コード例 #4
0
 public void Destroy()
 {
     _systems?.Destroy(_worlds);
     _systems = null;
     _worlds?.Destroy();
     _worlds = null;
 }
コード例 #5
0
 public void Dispose()
 {
     Systems.Destroy();
     Systems = null;
     World.Destroy();
     World = null;
 }
コード例 #6
0
ファイル: GameStartup.cs プロジェクト: SH42913/pacmanecs
    private void OnDisable()
    {
        systems.Destroy();
        systems = null;

        ecsWorld.Destroy();
        ecsWorld = null;
    }
コード例 #7
0
        private void OnDisable()
        {
            _systems.Destroy();
            _systems = null;

            _ecsWorld.Destroy();
            _ecsWorld = null;
        }
コード例 #8
0
 void OnDestroy()
 {
     systems.Destroy();
     systems = null;
     fixedSystems.Destroy();
     fixedSystems = null;
     world.Destroy();
     world = null;
 }
コード例 #9
0
 private void OnDestroy()
 {
     if (_mainSystems != null)
     {
         _mainSystems.Destroy();
         _mainSystems = null;
         _world.Destroy();
         _world = null;
     }
 }
コード例 #10
0
 void OnDestroy()
 {
     if (_systems != null)
     {
         _systems.Destroy();
         _systems = null;
         _world.Destroy();
         _world = null;
     }
 }
コード例 #11
0
    void OnDestroy()
    {
        if (systemsUpdate != null)
        {
            systemsUpdate.Destroy();
            systemsUpdate = null;
        }

        World.Destroy();
        World = null;
    }
コード例 #12
0
 public void OnDestroy()
 {
     if (_systems == null)
     {
         return;
     }
     _systems.Destroy();
     _systems = null;
     _world.Destroy();
     _world = null;
 }
コード例 #13
0
        void OnDestroy()
        {
            updateSystems.Destroy();
            updateSystems = null;

            fixedSystems.Destroy();
            fixedSystems = null;

            world.Destroy();
            world = null;
        }
コード例 #14
0
ファイル: EcsStartup.cs プロジェクト: t1az2z/RunnerECS
 void OnDestroy()
 {
     if (_systems != null)
     {
         _systems.Destroy();
         _systems = null;
         _world.Destroy();
         _world = null;
     }
     GameState.OnGameStateChange -= SceneData.UI.OnGameStateChange;
 }
コード例 #15
0
        private void OnDestroy()
        {
            if (_systems == null)
            {
                return;
            }

            _systems.Destroy();
            _systems = null;

            World.Destroy();
        }
コード例 #16
0
        public virtual void Dispose()
        {
            RootSystems.Destroy();
            RootSystems = null;
            _debugger   = null;

            if (_world != null && _world.IsAlive())
            {
                _world.Destroy();
                _world = null;
            }
        }
コード例 #17
0
        private void OnDestroy()
        {
            if (_systems != null)
            {
                _systems.Destroy();
            }

            if (_world != null)
            {
                _world.Destroy();
            }
        }
コード例 #18
0
        private void OnDestroy()
        {
            if (_systems != null)
            {
                _systems.Destroy();
                _systems = null;
                _world.Destroy();
                _world = null;
            }

            _gameState.OnScoreChange -= _ui.SetScore;
            _gameState.OnCountChange -= _ui.SetCount;
        }
コード例 #19
0
        void OnDestroy()
        {
            if (systems == null)
            {
                return;
            }

            systems.Destroy();
            systems = null;

            world.Destroy();
            world = null;
        }
コード例 #20
0
        private static void InitializeAllSystems(EcsWorld world)
        {
            //register all system into world for filter creation
            var ecsSystems = new EcsSystems(world);

            foreach (var system in mainSystems.Systems)
            {
                ecsSystems.Add(system.System);
            }

            ecsSystems.Init();
            //destroy initialized systems
            ecsSystems.Destroy();
        }
コード例 #21
0
        private void OnDisable()
        {
            updateSystems.Destroy();
            updateSystems = null;
            fixedUpdateSystems.Destroy();
            fixedUpdateSystems = null;

                        #if UNITY_EDITOR
            gizmosSystems.Destroy();
            gizmosSystems = null;
                        #endif

            world.Destroy();
            world = null;
        }
コード例 #22
0
        void OnDestroy()
        {
            if (_fixedUpdateSystems != null)
            {
                _fixedUpdateSystems.Destroy();
                _fixedUpdateSystems = null;
            }

            if (_updateSystems != null)
            {
                _updateSystems.Destroy();
                _updateSystems = null;
            }

            _world?.Destroy();
            _world = null;
        }
コード例 #23
0
 private void OnDestroy()
 {
     if (_update != null)
     {
         _update.Destroy();
         _update = null;
     }
     if (_fixedUpdate != null)
     {
         _fixedUpdate.Destroy();
         _fixedUpdate = null;
     }
     if (_world != null)
     {
         _world.Destroy();
         _world = null;
     }
 }
コード例 #24
0
    private void StartEcs()
    {
        var system1 = new MotionTargetInitSystem()
        {
            prefab = _prefab,
            amount = _amount,
            radius = _radius
        };
        var system2 = new MotionDirectionSystem();
        var system3 = new MotionTargetSystem();

        _world      = new EcsWorld();
        _ecsSystems = new EcsSystems(_world)
                      .Add(system1)
                      .Add(system2)
                      .Add(system3);

        _ecsSystems.Init();
        _ecsSystems.Destroy();

        _systems.Add(new EcsSystems(_world).Add(system2));
        _systems.Add(new EcsSystems(_world).Add(system3));
        _systems.ForEach(x => x.Init());
    }
コード例 #25
0
 public void OnDestroy()
 {
     systems.Destroy();
     world.Destroy();
 }
コード例 #26
0
ファイル: Loader.cs プロジェクト: Starrk102/ECS_test
        void OnDestroy()
        {
            system.Destroy();

            world.Destroy();
        }
コード例 #27
0
 public void LateDispose()
 {
     _systems.Destroy();
     _world.Destroy();
 }
コード例 #28
0
 public void Dispose()
 {
     _systems.Destroy();
 }
コード例 #29
0
ファイル: State.cs プロジェクト: Dagothig/cossin-lette-sharp
 public virtual void Destroy()
 {
     systems?.Destroy();
     world?.Destroy();
 }
コード例 #30
0
 private void OnDestroy()
 {
     systems.Destroy();
     world.Destroy();
 }