예제 #1
0
 public GameTimerItem(int index_, float interval_, bool isLoop_, D_Void_VOid cb_)
 {
     this.index    = index_;
     this.interval = interval_;
     this.isLoop   = isLoop_;
     this.cb       = cb_;
 }
예제 #2
0
        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);
        }