static void DoInject()
        {
            if (EditorApplication.isCompiling || Application.isPlaying)
            {
                Debug.LogError("Injection failed because Unity is compiling or playing!");
                return;
            }

            ILHFInjectorCfg.ReadConfig();
            for (int i = 0; i < ILHFInjectorCfg.AssembliesPathToInject.Count; i++)
            {
                ILHFInjector.Inject(ILHFInjectorCfg.AssembliesPathToInject[i], ILHFInjectorCfg.NameSpacesToInject, ILHFInjectorCfg.MethodsToInject, ILHFInjectorCfg.AsmResolvePath);
            }
            UnityEditorInternal.InternalEditorUtility.RequestScriptReload();
        }
Exemple #2
0
 public static void Configuration()
 {
     _cfgWindow = GetWindow <ILHFInjectorCfg>(true, "IL Inject");
     ReadConfig();
     _cfgWindow.Show();
 }
 static void Configuration()
 {
     ILHFInjectorCfg.Configuration();
 }