Exemple #1
0
        public static CozySequence CreateWithTwoActions(CozyFiniteTimeAction act1, CozyFiniteTimeAction act2)
        {
            var result = new CozySequence();

            result.InitWithTwoAction(act1, act2);
            return(result);
        }
Exemple #2
0
 public override object Clone()
 {
     var a       = new CozySequence();
     var act1    = Actions[0].Clone() as CozyFiniteTimeAction;
     var act2    = Actions[1].Clone() as CozyFiniteTimeAction;
     a.InitWithTwoAction(act1, act2);
     return a;
 }
Exemple #3
0
        public override object Clone()
        {
            var a    = new CozySequence();
            var act1 = Actions[0].Clone() as CozyFiniteTimeAction;
            var act2 = Actions[1].Clone() as CozyFiniteTimeAction;

            a.InitWithTwoAction(act1, act2);
            return(a);
        }
Exemple #4
0
        public static CozySequence Create(params CozyFiniteTimeAction[] args)
        {
            CozySequence seq   = null;
            int          Count = args.Length;
            var          prev  = args[0];

            if (Count > 1)
            {
                for (int i = 1; i < Count; ++i)
                {
                    prev = CreateWithTwoActions(prev, args[i]);
                }
            }
            else
            {
                prev = CreateWithTwoActions(prev, CozyExtraAction.Create());
            }
            seq = prev as CozySequence;
            return(seq);
        }
Exemple #5
0
 public static CozySequence CreateWithTwoActions(CozyFiniteTimeAction act1, CozyFiniteTimeAction act2)
 {
     var result = new CozySequence();
     result.InitWithTwoAction(act1, act2);
     return result;
 }