Exemplo n.º 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;
 }
Exemplo n.º 3
0
 protected TaskBase(Action <T> action)
 {
     _asyncTaskComponent = Center.Get <IAsyncTaskComponent>();
     _asyncTaskComponent.AddTask(this);
     Action = action;
 }
Exemplo n.º 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);
 }