Entitas.Systems.Cleanup C# (CSharp) Method

Cleanup() public method

public Cleanup ( ) : void
return void
        public virtual void Cleanup()
        {
            for (int i = 0; i < _cleanupSystems.Count; i++) {
                _cleanupSystems[i].Cleanup();
            }
        }

Usage Example

        void Update()
        {
            if (PhotonNetwork.isMasterClient)
            {
                if (!_serverSystemsInitialized)
                {
                    _serverSystemsInitialized = true;
                    _serverSystems.Initialize();
                }
                _serverSystems.Execute();
                _serverSystems.Cleanup();
            }


            _systems.Execute();
            _systems.Cleanup();
        }
All Usage Examples Of Entitas.Systems::Cleanup