Esempio n. 1
0
        /// <summary>
        /// 创建延时
        /// </summary>
        /// <param name="dt"></param>
        /// <returns></returns>
        public static CMissionInteval Create(float delayTime)
        {
            CMissionInteval CMI = new CMissionInteval();

            CMI.DelayTime = delayTime;
            CMI.NowTime   = 0f;
            return(CMI);
        }
Esempio n. 2
0
        /// <summary>
        /// 增加一个延时
        /// </summary>
        /// <param name="WaitTime"></param>
        public void AppendInteval(float WaitTime)
        {
            CMissionInteval CMI = CMissionInteval.Create(WaitTime);

            m_MissionQueue.Enqueue(CMI);
        }