/// <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); }
public TimeEvent(float fTime, TimeEventDelegate handle) { _fTime = fTime; _handle = handle; _bValid = true; }