kill cheatmanager on any scene

This commit is contained in:
Lapis
2026-06-04 18:49:44 -04:00
parent 9c6448a3f4
commit 6855abe9f6
+4 -7
View File
@@ -40,14 +40,11 @@ public class Plugin : BasePlugin
private void OnSceneLoaded(Scene scene, LoadSceneMode mode)
{
if (scene.name == "TitleScreen")
var cheatMgr = GameObject.Find("GameRoot/(Startup)(Clone)/Core Systems/[CheatManager]");
if (cheatMgr != null)
{
var cheatMgr = GameObject.Find("GameRoot/(Startup)(Clone)/Core Systems/[CheatManager]");
if (cheatMgr != null)
{
GameObject.Destroy(cheatMgr);
Log.LogInfo("cheatmanager destroyed");
}
GameObject.Destroy(cheatMgr);
Log.LogInfo("cheatmanager destroyed");
}
}
}