public void click(int position) { if (currentSelectedObject == null) { Debug.Log("null"); } if (currentSelectedObject != null) { currentSelectedObject.ChangeCellType(position); } close(); }