예제 #1
0
 private void GridPointExit(object o, BagGridTouchArgs arg)
 {
     if (PopupRoot != null)
     {
         PopupRoot.gameObject.SetActive(false);
     }
 }
예제 #2
0
 public void PointExit()
 {
     Debug.Log("point exit");
     if (PointExitEvent != null)
     {
         BagGridTouchArgs arg = new BagGridTouchArgs();
         arg.controller = this;
         PointExitEvent(this, arg);
     }
 }
예제 #3
0
 public void PointUp()
 {
     Debug.Log("point up");
     if (PointUpEvent != null)
     {
         BagGridTouchArgs arg = new BagGridTouchArgs();
         arg.controller = this;
         PointUpEvent(this, arg);
     }
     ImageRest();
 }
예제 #4
0
 public void PointDown()
 {
     Debug.Log("point down");
     if (PointDownEvent != null)
     {
         BagGridTouchArgs arg = new BagGridTouchArgs();
         arg.controller = this;
         PointDownEvent(this, arg);
     }
     if (res != null)
     {
         ImageAlpha_50();
     }
 }
예제 #5
0
        private void GridPointEnter(object o, BagGridTouchArgs arg)
        {
            GridDrager.GridPointEnter(arg);
            var res = arg.controller.GetRes();

            if (res == null)
            {
                return;
            }
            PopupRoot.gameObject.SetActive(true);
            var rectTS = arg.controller.RectTS;

            PopupRoot.position = rectTS.position + new Vector3(rectTS.rect.width, 0, 0);
            PopupText.text     = arg.controller.GetRes().Info();
        }
예제 #6
0
 private void GridPointUp(object o, BagGridTouchArgs arg)
 {
     GridDrager.GridPointUp(arg);
 }