예제 #1
0
 public void Dispose()
 {
     Debug.LogWarning("Disposing...");
     UniduxTickProvider.Unsubscribe(this);
     _instance               = null;
     _state                  = null;
     _subject                = null;
     _dispatcher             = null;
     _synchronizationContext = null;
     repository.Dispose();
     reducers.ToList().ForEach(r => r.Dispose());
     reducers = null;
 }
 private void Awake()
 {
     _instance = this;
 }
예제 #3
0
 public void InitOnLoadHub()
 {
     UniduxTickProvider.Subscribe(this);
 }