tried to create a universal unity event hook
This commit is contained in:
@@ -13,7 +13,7 @@ namespace BoneSync.Patching
|
||||
[HarmonyPatch(typeof(BoneworksSceneManager))]
|
||||
internal class SceneManagerPatches
|
||||
{
|
||||
[HarmonyPatch(nameof(BoneworksSceneManager.LoadScene)), HarmonyPostfix]
|
||||
/*[HarmonyPatch(nameof(BoneworksSceneManager.LoadScene)), HarmonyPostfix]
|
||||
private static void LoadScenePrefix(int sceneBuildIndex)
|
||||
{
|
||||
MelonLogger.Msg("LoadScenePrefix: " + sceneBuildIndex);
|
||||
@@ -23,6 +23,6 @@ namespace BoneSync.Patching
|
||||
MelonLogger.Msg("Host is loading scene, sending message to clients...");
|
||||
SceneSync.SendSceneSyncMessage(sceneBuildIndex);
|
||||
}
|
||||
}
|
||||
}*/
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user