예제 #1
0
파일: BuffBase.cs 프로젝트: mengtest/fs
        public void ResetTime()
        {
            CFrameEvent ev = CFrameTimeMgr.Inst.GetEvent(m_lifeEventHid);

            if (ev != null)
            {
                ev.curTime = 0;
            }
        }
예제 #2
0
    /// <summary>
    /// 1秒为1000
    /// </summary>
    public int RegisterEvent(int maxTime, Action func)
    {
        m_startId++;
        CFrameEvent ev = new CFrameEvent();

        ev.curTime  = 0;
        ev.maxTime  = maxTime;
        ev.endEvent = func;
        m_timeEvent.Add(m_startId, ev);
        return(m_startId);
    }