public void DestroyGui() { if (comboBox != null) { comboBox.Destroy(); } okButton.Destroy(); if (fromAlign != null) { fromAlign.Destroy(); } if (toAlign != null) { toAlign.Destroy(); } }