/** ******************************** Runs when surface is destroyed. */ public void Destroy() { for (DrawableUI a : GameObjects) { a.Destroy(); } }