コード例 #1
0
 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);
 }
コード例 #2
0
 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;
 }