예제 #1
0
        private void Move()
        {
            TP.from = originalPoint.localPosition;
            TP.to   = endPoint.localPosition;
            TP.ResetToBeginning();

            TR.from = originalPoint.localRotation.eulerAngles;
            TR.to   = endPoint.localRotation.eulerAngles;
            TR.ResetToBeginning();

            TP.PlayForward();
            TR.PlayForward();
            sprite.spriteName = _originalSptName;

            Transform arrow = mDMono.transform.parent.Find("DragArrow");

            if (arrow.gameObject.activeSelf)
            {
                arrow.localPosition = ArrowPoint;

                TweenWidth tWidth = arrow.GetComponent <TweenWidth>();
                tWidth.duration = TP.duration;
                tWidth.ResetToBeginning();
                tWidth.PlayForward();
                tWidth.style = UITweener.Style.Once;

                TweenHeight tHeight = arrow.GetComponent <TweenHeight>();
                tHeight.duration = TP.duration;
                tHeight.ResetToBeginning();
                tHeight.PlayForward();
                tHeight.style = UITweener.Style.Once;
            }
        }
예제 #2
0
        /// <summary>
        ///     显示投票结果内容
        /// </summary>
        public void ShowHandUp(HupData data, int countDown)
        {
            App.GetRServer <Lyzz2DGameServer>().IsInHandsUp = true;
            switch (data.Operation)
            {
            case -1:
                hupEnd = true;
                break;

            case 2:
                _showParent.SetActive(true);
                localID = App.GetGameManager <Lyzz2DGameManager>().SelfPlayer.UserInfo.id;
                ScrollAnim.PlayForward();
                hups = new List <HupData>();
                MiddleBtn.SetActive(false);
                CurTime = countDown;
                StartCoroutine(CuntDownTime());
                hupEnd = false;
                break;

            case 3:
                break;
            }
            hups.Add(data);
            DealHups();
        }
예제 #3
0
 /*
  * public void hoverIn(){
  *      if (pressed) {
  *
  *      } else {
  *              tweenWidth.PlayForward();
  *              tweenPosition.PlayForward();
  *              forward=true;
  *      }
  *
  * }
  * public void hoverout(){
  *      if (forward && !toggle.value) {
  *              tweenWidth.PlayReverse ();
  *              tweenPosition.PlayReverse ();
  *              reverse = true;
  *              forward = false;
  *      } else {
  *              isToggleSet=true;
  *              called=true;
  *      }
  * }
  */
 public void click()
 {
     for (int i = 0; i < levelButtons.Length; i++)
     {
         levelButtons[i].tw.PlayReverse();
         levelButtons[i].tp.PlayReverse();
     }
     tweenWidth.PlayForward();
     tweenPosition.PlayForward();
 }
예제 #4
0
 protected void OnEnable()
 {
     StopAllCoroutines();
     StartCoroutine(StartShowUiContent());
     TweenWidth.SetOnFinished(() =>
     {
         UiPanel.baseClipRegion = new Vector4(UiPanel.baseClipRegion.x, UiPanel.baseClipRegion.y, 600, UiPanel.baseClipRegion.w);
     });
     TweenWidth.PlayForward();
 }
예제 #5
0
        /// <summary>
        /// 显示投票结果内容
        /// </summary>
        public void ShowHandUp(HupData data, int countDown)
        {
            App.GetRServer <Mahjong2DGameServer>().IsInHandsUp = true;
            switch (data.Operation)
            {
            case -1:
                hupEnd = true;
                break;

            case 2:
                _showParent.SetActive(true);
                localID = App.GetGameManager <Mahjong2DGameManager>().SelfPlayer.UserInfo.id;
                if (!App.GameKey.Equals(EnumGameKeys.shmj.ToString()))
                {
                    if (ScrollAnim != null)
                    {
                        ScrollAnim.PlayForward();
                    }
                }
                hups = new List <HupData>();
                MiddleBtn.SetActive(false);
                CurTime = countDown;
                if (_handUpCoroutine != null)
                {
                    StopCoroutine(_handUpCoroutine);
                }
                CountDown.TrySetComponentValue(CurTime.ToString());
                _handUpCoroutine = StartCoroutine(CuntDownTime());
                _isStopCountDown = false;
                hupEnd           = false;
                break;

            case 3:
                break;
            }
            hups.Add(data);
            DealHups();
        }
예제 #6
0
 private void Play3()
 {
     button3.PlayForward(); button3h.PlayForward(); button3w.PlayForward();
 }