Beispiel #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;
            }
        }
Beispiel #2
0
 //伤害信息收缩
 private void JianTouOnClick(GameObject go)
 {
     if (jiantouOpen)
     {
         btn_jiantou.cachedTransform.localScale = new Vector3(1, -1, 1);
         jiantouOpen = false;
         container.SetActive(false);
         heightTween.Replay(false);
     }
     else
     {
         btn_jiantou.cachedTransform.localScale = Vector3.one;
         heightTween.PlayForward();
         jiantouOpen = true;
     }
 }
Beispiel #3
0
 private void Play3()
 {
     button3.PlayForward(); button3h.PlayForward(); button3w.PlayForward();
 }