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() { HarmonyHelper.EnsureHarmonyInstalled(); if (Extensions.InGame) { LifeCycle.Load(); } IsEnabled = true; }
public override void OnLevelLoaded(LoadMode mode) { Log.Debug("LoadingExtention.OnLevelLoaded"); LifeCycle.AfterLoad(); }
public void OnDisabled() { IsEnabled = false; LifeCycle.Unload(); }
public override void OnLevelUnloading() { Log.Debug("LoadingExtention.OnLevelUnloading"); LifeCycle.Unload(); }
public void OnDisabled() { LifeCycle.Disable(); IsEnabled = false; }
public void OnEnabled() { LifeCycle.Enable(); IsEnabled = true; }