예제 #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
파일: Easing.cs 프로젝트: keppelcao/LGame
        public Easing(Easing easing, float strength_0)
            : this(easing.type, easing.function, strength_0)
        {

        }
예제 #4
0
		public void SetEasing(Easing e) {
			this._easing = e;
		}