示例#1
0
        /// <summary>
        /// 得到所有定时器
        /// </summary>
        /// <returns>得到的定时器集合</returns>
        internal TimeAction[] GetAllTimeAction()
        {
            int index = 0;

            TimeAction[] results = new TimeAction[m_TimeActionList.Count];
            foreach (var timeAction in m_TimeActionList)
            {
                results[index++] = timeAction;
            }
            return(results);
        }
示例#2
0
 /// <summary>
 /// 移除定时器
 /// </summary>
 /// <param name="action"></param>
 internal void RemoveTimeAction(TimeAction action)
 {
     m_TimeManager.RemoveTimeAction(action);
     GameEntry.Pool.UnSpawnClassObject(action);
 }
示例#3
0
 /// <summary>
 /// 注册定时器
 /// </summary>
 /// <param name="action"></param>
 internal void RegisterTimeAction(TimeAction action)
 {
     m_TimeManager.RegisterTimeAction(action);
 }
示例#4
0
 /// <summary>
 /// 移除定时器
 /// </summary>
 /// <param name="action"></param>
 internal void RemoveTimeAction(TimeAction action)
 {
     m_TimeActionList.Remove(action);
 }
示例#5
0
 /// <summary>
 /// 注册定时器
 /// </summary>
 /// <param name="action"></param>
 internal void RegisterTimeAction(TimeAction action)
 {
     m_TimeActionList.AddLast(action);
 }