예제 #1
0
 static private void AddResearchDefs(GreatLibrary greatLibrary)
 {
     foreach (GreatLibrary.ResearchDef researchDef in researchDefs)
     {
         greatLibrary.researchDefs.Add(researchDef);
     }
 }
예제 #2
0
                static void Postfix(Building __instance)
                {
                    GreatLibrary greatLibrary = __instance.GetComponent <GreatLibrary>();

                    if (greatLibrary != null)
                    {
                        AddResearchDefs(greatLibrary);
                    }
                    ;
                }
예제 #3
0
 static void Postfix(GreatLibrary s)
 {
     AddResearchDefs(s);
 }