public override void OnSceneWasLoaded(int buildIndex, string sceneName) { if (buildIndex == -1) { if (Constants.quickMenuColliderSize != null) { Constants.quickMenuColliderSize = Constants.quickMenu.GetComponent <BoxCollider>().size; ListPositionManager.CombineQMColliderAndPlayerListRect(); } EntryManager.OnSceneWasLoaded(); UIManager.OnSceneWasLoaded(); } }
public override void OnSceneWasLoaded(int buildIndex, string sceneName) { if (buildIndex != -1) { return; } if (MelonHandler.Mods.Any(mod => mod.Info.Name == "emmVRCLoader")) { typeof(EmmManager).GetMethod("OnSceneWasLoaded").Invoke(null, null); } MenuManager.OnSceneWasLoaded(); Constants.OnSceneWasLoaded(); EntryManager.OnSceneWasLoaded(); }