void ClearAll() { main.utility.DeleteTimers(); clearScene = true; formation = null; for (int i = 0; i < main.collision.list.Count; i++) { main.collision.list[i].Dispose(); } main.collision.list.Clear(); //ui weaponIcon.Dispose(); lifeIcon.Dispose(); earthIcon.Dispose(); scoreText.Dispose(); livesText.Dispose(); planetText.Dispose(); pauseText.Dispose(); ammoText.Dispose(); gameOverText.Dispose(); //obj player.Dispose(); earth.Dispose(); bgLayer1.Dispose(); bgLayer2.Dispose(); bgLayer3.Dispose(); main.utility.DeleteTimers(); main.ChangeGameState(2); }