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); }
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); }