public override void OnLevelLoaded(LoadMode mode) { ShortCuts.Log("LoadingExtention.OnLevelLoaded"); if (mode == LoadMode.LoadGame || mode == LoadMode.NewGame) { LoadTool.Load(); } }
public void OnEnabled() { System.IO.File.WriteAllText("mod.debug.log", ""); //clear file ShortCuts.Log("IUserMod.OnEnabled"); if (ShortCuts.InGame) { LoadTool.Load(); } }
public override void OnLevelUnloading() { ShortCuts.Log("LoadingExtention.OnLevelUnloading"); LoadTool.Release(); }
public void OnDisabled() { ShortCuts.Log("IUserMod.OnDisabled"); LoadTool.Release(); }