public void GridPointUp(BagGridTouchArgs arg) { if (controller != arg.controller) { BagGridController.Swap(controller, arg.controller); } DummyImage.sprite = null; DummyImage.gameObject.SetActive(false); recordTime = Time.time; }
public void GridPointEnter(BagGridTouchArgs arg) { var diffTime = Time.time - recordTime; if (diffTime < swapTime) { if (controller != arg.controller) { BagGridController.Swap(controller, arg.controller); } } }