private void InitTween(FTweenTool t) { t.SetMode(mMode); t.TweenNode.mOnStart += (ti) => { if (ti != 0) { t.SetPause(true); _Play(); } }; t.TweenNode.mOnComplete += (ti) => { if (mMode != FTweenMode.TM_YoYo) { if (t.TweenNode.mTurnDelayTime > 0.005) { if (ti % 2 == 1) { return; } } else if (t.TweenNode.mTurnDelayTime > 0.001) { if (ti % 2 != 1) { return; } } } t.SetPause(true); _Play(); }; t.SetPause(true); }
public FTweenMix Append(FTweenTool tween) { InitTween(tween); mTweens.Add(tween); if (mIsOver) { mIndex = mTweens.Count - 2; mIsOver = false; _Play(); } return(this); }
public FTweenEvent() { mControl = new FTweenTool(this); }