Beispiel #1
0
        protected virtual void OnDestroy()
        {
            Log.Trace("OnDestroy");

            if (_system != null)
            {
                _system.Dispose();
            }
        }
Beispiel #2
0
        public void Dispose()
        {
            Log.Trace("Dispose");

            for (var i = 0; i < _batches.Count; i++)
            {
                _batches[i].Dispose();
            }

            _batches.Clear();
            _registeredBatches.Clear();

            if (_box != null)
            {
                Object.DestroyImmediate(_box);
            }

            _system.Dispose();
        }
Beispiel #3
0
 protected virtual void OnDestroy()
 {
     _decalSystem.Dispose();
 }