public void OnPointerUp(PointerEventData data) { if (gc.HasHeldPiece()) { gc.SetPieceAtCursor(gc.heldPiece); ghost.gameObject.SetActive(false); } }
public void OnPointerUp(PointerEventData data) { if (moving && !inside) { example.SetPiece(x, y, null); example.SetPieceAtCursor(example.heldPiece); ghost.gameObject.SetActive(false); } else if (example.PieceExistsAt(x, y)) { example.CyclePieceAt(x, y); } moving = false; }