Пример #1
0
 public IntervalByFrames(UpdateHub hub, int frames, Action action)
 {
     Hub           = hub;
     Action        = action;
     hub.OnUpdate += Next;
     interval      = tick = frames;
 }
Пример #2
0
 public DelayByFrames(UpdateHub hub, int frames, Action action)
 {
     Hub           = hub;
     Action        = action;
     hub.OnUpdate += Next;
     countdown     = frames;
 }
Пример #3
0
 public IntervalByFixedTime(UpdateHub hub, float interval, Action action)
 {
     Hub                = hub;
     Action             = action;
     hub.OnFixedUpdate += Next;
     this.interval      = interval;
     this.last          = Time.fixedTime;
 }
Пример #4
0
 public DelayByFixedTime(UpdateHub hub, float delay, Action action)
 {
     Hub                = hub;
     Action             = action;
     hub.OnFixedUpdate += Next;
     this.start         = Time.fixedTime;
     this.end           = Time.fixedTime + delay;
 }
Пример #5
0
 public FixedUpdateHandle(UpdateHub hub, Action action)
 {
     Hub                = hub;
     Action             = action;
     hub.OnFixedUpdate += action;
 }