public GameTimerItem(int index_, float interval_, bool isLoop_, D_Void_VOid cb_) { this.index = index_; this.interval = interval_; this.isLoop = isLoop_; this.cb = cb_; }
public int CreateGameTimer(float interval_, bool isLoop_, D_Void_VOid cb_, bool autoStart_ = false) { GameTimerItem item = new GameTimerItem(++staticIndex, interval_, isLoop_, cb_); addItems.Add(item); hashIds.Add(item.index, item); if (autoStart_) { item.enable = true; } return(item.index); }