Esempio n. 1
0
        /// <summary>
        /// 一直重复的动作
        /// </summary>
        /// <param name="repeateAction"></param>
        /// <returns></returns>
        public static Repeate CreateForever(IAction repeateAction)
        {
            var action = new Repeate();

            action.Action = repeateAction;
            return(action);
        }
Esempio n. 2
0
        /// <summary>
        /// 重复多少次动作
        /// </summary>
        /// <param name="nCount"></param>
        /// <param name="repeateAction"></param>
        /// <returns></returns>
        public static Repeate Create(int nCount, IAction repeateAction)
        {
            var action = new Repeate();

            action.Action       = repeateAction;
            action.RepeateCount = nCount;
            return(action);
        }