Beispiel #1
0
 public override void OnLevelLoaded(LoadMode mode)
 {
     Log.Debug("LoadingExtention.OnLevelLoaded");
     if (mode == LoadMode.LoadGame || mode == LoadMode.NewGame || mode == LoadMode.NewGameFromScenario)
     {
         LifeCycle.Load();
     }
 }
 public void OnEnabled()
 {
     System.IO.File.WriteAllText("mod.debug.log", ""); // restart log.
     HarmonyHelper.DoOnHarmonyReady(() => HarmonyUtil.InstallHarmony(HarmonyId));
     if (HelpersExtensions.InGame)
     {
         LifeCycle.Load();
     }
 }
Beispiel #3
0
 public override void OnLevelUnloading()
 {
     Log.Debug("LoadingExtention.OnLevelUnloading");
     LifeCycle.Release();
 }
 public void OnDisabled()
 {
     LifeCycle.Release();
     HarmonyUtil.UninstallHarmony(HarmonyId);
 }