Skip to content

Commit

Permalink
Update HMpatch.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
werasik2aa authored Mar 14, 2022
1 parent 1b4dc69 commit 4466bf9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions HMpatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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()
Expand All @@ -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()
Expand Down

0 comments on commit 4466bf9

Please sign in to comment.