Esempio n. 1
0
        /// <summary>
        /// 注册时间事件
        /// </summary>
        public int registerTimeEvent(float fTime, TimeEventDelegate deg)
        {
            var value = new TimeEvent(fTime, deg);

            value._nIdx = _listTimeEvent.Count;
            _listTimeEvent.Add(value);

            return(value._nIdx);
        }
Esempio n. 2
0
 public TimeEvent(float fTime, TimeEventDelegate handle)
 {
     _fTime  = fTime;
     _handle = handle;
     _bValid = true;
 }