Пример #1
0
        public static Spawn Create(FiniteTimeAction action1, params FiniteTimeAction[] args)
        {
            FiniteTimeAction now;
            FiniteTimeAction prev = action1;

            for (int i = 0; i < args.Length; i++)
            {
                now  = args[i];
                prev = CreateWithTwoActions(prev, now);
            }
            if (args.Length == 0)
            {
                prev = CreateWithTwoActions(prev, ExtraAction.Create());
            }
            return(prev as Spawn);
        }
Пример #2
0
        public static CCActionSequence Create(IFiniteTimeAction action1, params IFiniteTimeAction[] args)
        {
            IFiniteTimeAction now;
            IFiniteTimeAction prev = action1;

            for (int i = 0; i < args.Length; i++)
            {
                now  = args[i];
                prev = CreateWithTwoActions(prev, now);
            }
            if (args.Length == 0)
            {
                prev = CreateWithTwoActions(prev, ExtraAction.Create());
            }
            return(prev as CCActionSequence);
        }
Пример #3
0
        public static ExtraAction Create()
        {
            ExtraAction ret = new ExtraAction();

            return(ret);
        }