private void OnClickMask() { // 窗口关闭动画 /* * ITweenNode tween = SequenceNode.Allocate( * _animRectTrans.TweenAnchoredPositionTo(0.5f, new Vector2(800, 0)).SetLerp(LerpBezierFun), * _animRectTrans.transform.TweenScaleTo(0.5f, Vector3.zero).SetEase(TweenEase.Bounce.EaseOut), * ExecuteNode.Allocate(() => { UITools.CloseWindow<UIMap>(); }) * ); * TweenGrouper.Play(tween); */ ITweenChain tween = SequenceNode.Allocate(); tween.Append(_animRectTrans.TweenAnchoredPositionTo(0.5f, new Vector2(800, 0)).SetLerp(LerpBezierFun)); tween.Append(_animRectTrans.transform.TweenScaleTo(0.5f, Vector3.zero).SetEase(TweenEase.Bounce.EaseOut)); tween.Execute(() => { UITools.CloseWindow <UIMap>(); }); TweenGrouper.Play(tween); }