コード例 #1
0
ファイル: LNEaseSequence.cs プロジェクト: keppelcao/LGame
		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
ファイル: LNEaseSequence.cs プロジェクト: keppelcao/LGame
		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
ファイル: LNAction.cs プロジェクト: 207h2Flogintvg/LGame
		public void SetEasing(Easing e) {
			this._easing = e;
		}