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