示例#1
0
		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;
		}
示例#2
0
		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;
		}
示例#3
0
        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);
        }
示例#4
0
        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);
        }