예제 #1
0
        /// <summary>
        /// 延迟后循环每帧触发
        /// </summary>
        /// <param name="delayAction">延迟后事件</param>
        public virtual void UpdateEvent(DelayAction delayAction = null)
        {
            bool isDelaying;

            ToDelay(delayTime, ref this.tempTime, ref this.isDelay, out isDelaying);

            if (isDelaying)
            {
                return;             //在延迟状态就返回
            }
            if (delayAction != null)
            {
                delayAction?.Invoke();
            }
        }