public static CozySequence CreateWithTwoActions(CozyFiniteTimeAction act1, CozyFiniteTimeAction act2) { var result = new CozySequence(); result.InitWithTwoAction(act1, act2); return(result); }
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; }
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); }
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); }
public static CozySequence CreateWithTwoActions(CozyFiniteTimeAction act1, CozyFiniteTimeAction act2) { var result = new CozySequence(); result.InitWithTwoAction(act1, act2); return result; }