//直接循环动作 public static ActionSequence Looper(this Component id, float interval, int loopTime, bool isActionAtStart, Action <int> action) { ActionSequence seq = ActionSequenceSystem.GetSequence(id); if (isActionAtStart) { seq.Action(action).Interval(interval); } else { seq.Interval(interval).Action(action); } seq.Loop(loopTime); return(seq); }
public static ActionSequence Looper(float interval, int loopTime, bool isActionAtStart, Action action) { ActionSequence seq = GetSequence(); if (isActionAtStart) { seq.Action(action).Interval(interval); } else { seq.Interval(interval).Action(action); } seq.Loop(loopTime); return(seq); }