Beispiel #1
0
 internal SignalBase()
 {
     iSignalComponent = Center.Get <SignalComponent>();
     iSignalComponent.AddSignal(this);
 }
 protected AsyncTaskWithParam(Action <T> action)
 {
     _iAsyncComponent = Center.Get <AsyncComponent>();
     _iAsyncComponent.RegistTick(this);
     Action = action;
 }
 protected TaskBase(Action <T> action)
 {
     _asyncTaskComponent = Center.Get <IAsyncTaskComponent>();
     _asyncTaskComponent.AddTask(this);
     Action = action;
 }
Beispiel #4
0
 public Pool(IPoolHandler <T> iPoolHandler)
 {
     _iPoolHandler   = iPoolHandler;
     _iPoolComponent = Center.Get <PoolComponent>();
     _iPoolComponent.AddPool(this);
 }
 public override void OnCreated()
 {
     _tickComponent = Center.Get <ITickComponent>();
     _tickComponent.Regist(this);
 }