protected void Start() { WaterfallParticleLoader.LoadParticles(); ShaderLoader.LoadShaders(); ShaderLoader.LoadShaderProperties(); WaterfallTemplates.LoadTemplates(); }
public static void ModuleManagerPostLoad() { WaterfallParticleLoader.LoadParticles(); ShaderLoader.LoadShaders(); ShaderLoader.LoadShaderProperties(); WaterfallTemplates.LoadTemplates(); }
/// <summary> /// Loads all shaders in the plugin's data directory /// </summary> public static void LoadParticles() { Utils.Log("[WaterfallParticleLoader]: Loading shaders"); String path = Path.Combine(KSPUtil.ApplicationRootPath + "GameData/Waterfall/Particles/"); String pathSpec; pathSpec = "*.particle"; // fixes OpenGL on windows String[] bundlePaths = Directory.GetFiles(path, pathSpec); foreach (String bundle in bundlePaths) { WaterfallParticleLoader.LoadAssetBundleAtPath(bundle); } }