private bool CreateFirstRunGui() { foreach (var settings in AddonLibrary.Settings.Where(s => s.FirstRun)) { this.shownFirstRunGui = this.gameObject.AddComponent <FirstRunGui>(); this.shownFirstRunGui.Settings = settings; this.shownFirstRunGui.Addons = AddonLibrary.Addons.Where(a => a.Settings == settings).ToList(); return(true); } return(false); }
private bool CreateFirstRunGui() { foreach (var settings in AddonLibrary.Settings.Where(s => s.FirstRun)) { this.shownFirstRunGui = this.gameObject.AddComponent<FirstRunGui>(); this.shownFirstRunGui.Settings = settings; this.shownFirstRunGui.Addons = AddonLibrary.Addons.Where(a => a.Settings == settings).ToList(); return true; } return false; }