Beispiel #1
0
        public virtual void Dispose()
        {
            if (parallelSystemComponentProcessor != null)
            {
                parallelSystemComponentProcessor.Dispose();
            }

            entityManager = null;

            validEntities.Clear();
            componentsToProcess.Clear();
            componentsToProcessLUT.Clear();

#if UNITY_EDITOR || DEVELOPMENT_BUILD
            UnityEngine.Debug.Log("System(" + this.GetType().Name + ") disposed");
#endif
        }