public static void Remove(Component UIelement) { removing.Add(UIelement); }
void button_onClick(Component sender) { ((Button)sender).Text = "Clicked"; MediaPlayer.Stop(); MediaPlayer.Play(LevelSong1); button.onClick -= button_onClick; button.Unload(); }
public static void Add(Component uiElement) { components.Add(uiElement); }