mirror of
https://github.com/CannedNet/CannedNet.Client.git
synced 2026-10-27 07:59:00 -07:00
kill cheatmanager on any scene
This commit is contained in:
@@ -39,8 +39,6 @@ public class Plugin : BasePlugin
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void OnSceneLoaded(Scene scene, LoadSceneMode mode)
|
private void OnSceneLoaded(Scene scene, LoadSceneMode mode)
|
||||||
{
|
|
||||||
if (scene.name == "TitleScreen")
|
|
||||||
{
|
{
|
||||||
var cheatMgr = GameObject.Find("GameRoot/(Startup)(Clone)/Core Systems/[CheatManager]");
|
var cheatMgr = GameObject.Find("GameRoot/(Startup)(Clone)/Core Systems/[CheatManager]");
|
||||||
if (cheatMgr != null)
|
if (cheatMgr != null)
|
||||||
@@ -50,5 +48,4 @@ public class Plugin : BasePlugin
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user