private void MoveUp(bool leaveDirty) { if (leaveDirty) { sm.DirtyRoom(x, y); } if (y < 1) { y++; transform.position = new Vector3(x, y, 0); } }