public void Destroy() { background.Destroy(); foreach (CanvasButton button in buttons.Values) { button.Destroy(); } foreach (CanvasImage image in images.Values) { image.Destroy(); } foreach (CanvasText t in texts.Values) { t.Destroy(); } foreach (CanvasPanel p in panels.Values) { p.Destroy(); } }