public IntervalByFrames(UpdateHub hub, int frames, Action action) { Hub = hub; Action = action; hub.OnUpdate += Next; interval = tick = frames; }
public DelayByFrames(UpdateHub hub, int frames, Action action) { Hub = hub; Action = action; hub.OnUpdate += Next; countdown = frames; }
public IntervalByFixedTime(UpdateHub hub, float interval, Action action) { Hub = hub; Action = action; hub.OnFixedUpdate += Next; this.interval = interval; this.last = Time.fixedTime; }
public DelayByFixedTime(UpdateHub hub, float delay, Action action) { Hub = hub; Action = action; hub.OnFixedUpdate += Next; this.start = Time.fixedTime; this.end = Time.fixedTime + delay; }
public FixedUpdateHandle(UpdateHub hub, Action action) { Hub = hub; Action = action; hub.OnFixedUpdate += action; }