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