public void OnSceneUnloaded(Scene scene) { if (scene.name == "GameplayCore") { Decoupler.HideEffect(); } }
public void OnSceneLoaded(Scene scene, LoadSceneMode sceneMode) { if (scene.name == "MenuCore" && !runOnce) { Logger.Info("First scene change to MenuCore, apply patch"); runOnce = true; Patcher.Patch(); Decoupler.OnLoad(); } }