static StructComponentsGenerator() { AssemblyReloadEvents.afterAssemblyReload += StructComponentsGenerator.OnAfterAssemblyReload; if (StructComponentsGenerator.IsFirstLaunch() == true) { StructComponentsGenerator.SetFirstLaunch(); StructComponentsGenerator.OnAfterAssemblyReload(); } }
static StructComponentsGenerator() { AssemblyReloadEvents.afterAssemblyReload += StructComponentsGenerator.OnAfterAssemblyReload; UnityEditor.Compilation.CompilationPipeline.assemblyCompilationFinished += StructComponentsGenerator.AssemblyCompilationFinishedEventHandler; if (StructComponentsGenerator.IsFirstLaunch() == true) { StructComponentsGenerator.SetFirstLaunch(); StructComponentsGenerator.OnAfterAssemblyReload(); } }