mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 22:39:22 +00:00
15 lines
No EOL
490 B
C#
15 lines
No EOL
490 B
C#
using ABI_RC.Core.Player;
|
|
using HarmonyLib;
|
|
|
|
namespace NAK.SmoothRay.HarmonyPatches;
|
|
|
|
class PlayerSetupPatches
|
|
{
|
|
[HarmonyPostfix]
|
|
[HarmonyPatch(typeof(PlayerSetup), nameof(PlayerSetup.Start))]
|
|
static void Post_PlayerSetup_Start(ref PlayerSetup __instance)
|
|
{
|
|
__instance.vrLeftHandTracker.gameObject.AddComponent<SmoothRayer>().ray = __instance.leftRay;
|
|
__instance.vrRightHandTracker.gameObject.AddComponent<SmoothRayer>().ray = __instance.rightRay;
|
|
}
|
|
} |