public void OnPointerDown(PointerEventData data) { if (example.PieceExistsAt(x, y)) { example.heldPiece = example.GetPiece(x, y); moving = true; } }