Esempio n. 1
0
 protected void spawnStaticObject()
 {
     isBuilding     = false;
     buildCompleted = false;
     KKWrapper.Init();
     KKAPI.SpawnObject(staticToSpawn);
 }
Esempio n. 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);
        }