示例#1
0
 protected void spawnStaticObject()
 {
     isBuilding     = false;
     buildCompleted = false;
     KKWrapper.Init();
     KKAPI.SpawnObject(staticToSpawn);
 }
示例#2
0
        public static void Init()
        {
            if (kkAssembly == null)
            {
                foreach (AssemblyLoader.LoadedAssembly loadedAssembly in AssemblyLoader.loadedAssemblies)
                {
                    if (loadedAssembly.name == "KerbalKonstructs")
                    {
                        kkAssembly = loadedAssembly.assembly;
                        break;
                    }
                }

                if (kkAssembly == null)
                {
                    return;
                }
            }

            //Now init the classes and methods
            KKAPI.InitClass(kkAssembly);
        }