public override void OnLevelLoaded(LoadMode mode)
 {
     Log.Debug("LoadingExtention.OnLevelLoaded");
     if (mode == LoadMode.LoadGame || mode == LoadMode.NewGame || mode == LoadMode.NewGameFromScenario)
     {
         LifeCycle.Load();
     }
 }
Beispiel #2
0
 public void OnEnabled()
 {
     HarmonyHelper.EnsureHarmonyInstalled();
     if (Extensions.InGame)
     {
         LifeCycle.Load();
     }
     IsEnabled = true;
 }
Beispiel #3
0
 public override void OnLevelLoaded(LoadMode mode)
 {
     Log.Debug("LoadingExtention.OnLevelLoaded");
     LifeCycle.AfterLoad();
 }
Beispiel #4
0
 public void OnDisabled()
 {
     IsEnabled = false;
     LifeCycle.Unload();
 }
 public override void OnLevelUnloading()
 {
     Log.Debug("LoadingExtention.OnLevelUnloading");
     LifeCycle.Unload();
 }
Beispiel #6
0
 public void OnDisabled()
 {
     LifeCycle.Disable();
     IsEnabled = false;
 }
Beispiel #7
0
 public void OnEnabled()
 {
     LifeCycle.Enable();
     IsEnabled = true;
 }