Пример #1
0
        private void OnClickMask()
        {
            ITweenChain tween = TweenAllocate.Sequence();

            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>(); });
            this.Go.PlayTween(tween);
        }
Пример #2
0
        private void OnClickLogin()
        {
            if (NetworkManager.Instance.States == ENetworkStates.Connecting)
            {
                return;
            }

            // 尝试连接ET服务器
            //HotfixLog.Log("开始连接服务器");
            //NetworkManager.Instance.ConnectServer("127.0.0.1", 10002);

            // 打开新的窗口
            UITools.OpenWindow <UIMain>();
            UITools.CloseWindow <UILogin>();
        }
Пример #3
0
        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);
        }