diff --git a/HMpatch.cs b/HMpatch.cs index 717b917..8f3fd27 100644 --- a/HMpatch.cs +++ b/HMpatch.cs @@ -3,7 +3,7 @@ using vehiclemod; namespace vehiclemod { - [HarmonyLib.HarmonyPatch(typeof(GameManager), "LoadSceneWithLoadingScreen")] // Once + [HarmonyLib.HarmonyPatch(typeof(GameManager), "LoadSceneWithLoadingScreen")] // BACK THE PARENT OF OBJ public static class GameManager_LoadSceneWithLoadingScreen { private static void Prefix(ref string sceneName) @@ -12,7 +12,7 @@ private static void Prefix(ref string sceneName) if (VehicleController.myparent != GameManager.GetPlayerTransform().transform.parent) GameManager.GetPlayerTransform().transform.SetParent(VehicleController.myparent); } } - [HarmonyLib.HarmonyPatch(typeof(GameManager), "LoadScene", new Type[] { typeof(string), typeof(string) })] // Once + [HarmonyLib.HarmonyPatch(typeof(GameManager), "LoadScene", new Type[] { typeof(string), typeof(string) })] // BACK THE PARENT OF OBJ public class GameManager_LoadSceneOverLoad1 { public static void Prefix() @@ -21,7 +21,7 @@ public static void Prefix() if (VehicleController.myparent != GameManager.GetPlayerTransform().transform.parent) GameManager.GetPlayerTransform().transform.SetParent(VehicleController.myparent); } } - [HarmonyLib.HarmonyPatch(typeof(GameManager), "LoadScene", new Type[] { typeof(string) })] // Once + [HarmonyLib.HarmonyPatch(typeof(GameManager), "LoadScene", new Type[] { typeof(string) })] // HEY GET BACK TO YOUR PLACE public class GameManager_LoadSceneOverLoad2 { public static void Prefix()