public static LNEaseSequence Action(Easing easing, params LNAction[] actions) { int size = actions.Length; LNEaseSequence ease = new LNEaseSequence(); ease._actionList = new List<LNAction>(size); ease._actionList.AddRange(Arrays.AsList<Node.LNAction>(actions)); ease._duration = 0f; ease._easing = easing; ease._index = 0; for (int i = 0; i < size; i++) { actions[i]._easing = easing; ease._duration += actions[i].GetDuration(); } return ease; }
public static LNEaseSequence Action(Easing easing, List<LNAction> actions) { LNEaseSequence ease = new LNEaseSequence(); ease._actionList = actions; ease._duration = 0f; ease._index = 0; ease._easing = easing; for (int i = 0; i < actions.Count; i++) { actions[i]._easing = easing; ease._duration += actions[i].GetDuration(); } return ease; }
public Easing(Easing easing, float strength_0) : this(easing.type, easing.function, strength_0) { }
public void SetEasing(Easing e) { this._easing = e; }