示例#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;
 }
示例#2
0
    public void GridPointEnter(BagGridTouchArgs arg)
    {
        var diffTime = Time.time - recordTime;

        if (diffTime < swapTime)
        {
            if (controller != arg.controller)
            {
                BagGridController.Swap(controller, arg.controller);
            }
        }
    }