Beispiel #1
0
 public virtual void OnDisable()
 {
     if (_disposableManager != null)
     {
         _disposableManager.Dispose();
         _disposableManager = null;
     }
 }
        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();
            }
        }
 public virtual void Dispose()
 {
     Log.Debug("Zenject: Disposing IDisposable's");
     _disposablesManager.Dispose();
 }