public GeneralEditor(GeneralElements templates, GeneralActions buttons) { InitializeComponent(); this.Templates = templates; this.Buttons = buttons; this.Unloaded += GeneralEditor_Unloaded; }
void GeneralEditor_Unloaded(object sender, RoutedEventArgs e) { this.Unloaded -= GeneralEditor_Unloaded; Templates.Clear(); Templates = null; Buttons.Clear(); Buttons = null; GC.Collect(); }
public static GameObject GetGeneralElements(GeneralElements G) { return(Resources.Load <GameObject>("DamageView/" + G.ToString())); }