Ejemplo n.º 1
0
        /// <summary>
        /// 获取轮询实例
        /// </summary>
        /// <returns></returns>
        public TimeAction GetTimeAction()
        {
            TimeAction m_TimeAction = CreateTimeAction();

            m_TimeAction.Reset();

            m_TimeAction.InitTimeAction();

            return(m_TimeAction);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// 移除定时器
 /// </summary>
 /// <param name="action"></param>
 public void RemoveTimeAction(TimeAction action)
 {
     action.Reset();
     m_TimeActionList.Remove(action);
     m_TimeActionObjectPool.Unspawn(action);
 }