[SmoothRay] Fixes for 2023r171

This commit is contained in:
NotAKidoS 2023-07-28 22:29:24 -05:00
parent a44354502f
commit d67c45023f
5 changed files with 110 additions and 77 deletions

View file

@ -3,11 +3,11 @@ using HarmonyLib;
namespace NAK.SmoothRay.HarmonyPatches;
class PlayerSetupPatches
internal class PlayerSetupPatches
{
[HarmonyPostfix]
[HarmonyPatch(typeof(PlayerSetup), nameof(PlayerSetup.Start))]
static void Post_PlayerSetup_Start(ref PlayerSetup __instance)
private static void Post_PlayerSetup_Start(ref PlayerSetup __instance)
{
__instance.vrLeftHandTracker.gameObject.AddComponent<SmoothRayer>().ray = __instance.leftRay;
__instance.vrRightHandTracker.gameObject.AddComponent<SmoothRayer>().ray = __instance.rightRay;