Пример #1
0
 public virtual void OnDisable()
 {
     if (_disposableManager != null)
     {
         _disposableManager.Dispose();
         _disposableManager = null;
     }
 }
Пример #2
0
        public virtual void OnDestroy()
        {
            // _disposablesManager can be null if we get destroyed before the Start event
            if (_disposablesManager != null)
            {
                Assert.That(!_isDestroyed);
                _isDestroyed = true;

                _disposablesManager.Dispose();
                _disposablesManager.LateDispose();
            }
        }
Пример #3
0
 public virtual void Dispose()
 {
     Log.Debug("Zenject: Disposing IDisposable's");
     _disposablesManager.Dispose();
 }