Exemple #1
0
 public void Dispose()
 {
     OnDispose();
     if (mContainer != null)
     {
         mContainer.Dispose();
     }
     if (mEventSystem != null)
     {
         mEventSystem.Dispose();
     }
 }
 public void OnDestroy()
 {
     _subModules.ForEach(x => x.Destroy());
     _container.Dispose();
 }