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