Example #1
0
 public IntervalByFrames(UpdateHub hub, int frames, Action action)
 {
     Hub           = hub;
     Action        = action;
     hub.OnUpdate += Next;
     interval      = tick = frames;
 }
Example #2
0
 public DelayByFrames(UpdateHub hub, int frames, Action action)
 {
     Hub           = hub;
     Action        = action;
     hub.OnUpdate += Next;
     countdown     = frames;
 }
Example #3
0
 public IntervalByFixedTime(UpdateHub hub, float interval, Action action)
 {
     Hub                = hub;
     Action             = action;
     hub.OnFixedUpdate += Next;
     this.interval      = interval;
     this.last          = Time.fixedTime;
 }
Example #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;
 }
Example #5
0
 public FixedUpdateHandle(UpdateHub hub, Action action)
 {
     Hub                = hub;
     Action             = action;
     hub.OnFixedUpdate += action;
 }