Exemplo n.º 1
0
 public void GridPointUp(BagGridTouchArgs arg)
 {
     if (controller != arg.controller)
     {
         BagGridController.Swap(controller, arg.controller);
     }
     DummyImage.sprite = null;
     DummyImage.gameObject.SetActive(false);
     recordTime = Time.time;
 }
Exemplo n.º 2
0
    public void GridPointEnter(BagGridTouchArgs arg)
    {
        var diffTime = Time.time - recordTime;

        if (diffTime < swapTime)
        {
            if (controller != arg.controller)
            {
                BagGridController.Swap(controller, arg.controller);
            }
        }
    }
Exemplo n.º 3
0
 public void GridPointDown(BagGridTouchArgs arg)
 {
     DummyImage.gameObject.SetActive(true);
     controller = arg.controller;
     if (!controller.ResIsNull())
     {
         DummyImage.sprite = controller.GetRes().Sprite();
         DummyImage.color  = Color.white;
     }
     else
     {
         DummyImage.color = Color.clear;
     }
     var mousePos = Input.mousePosition;
 }