mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-01 22:09:23 +00:00
17 lines
No EOL
491 B
C#
17 lines
No EOL
491 B
C#
|
|
using ABI_RC.Core;
|
|
using ABI_RC.Core.InteractionSystem;
|
|
using HarmonyLib;
|
|
using NAK.InteractionTest.Components;
|
|
|
|
namespace NAK.InteractionTest.Patches;
|
|
|
|
internal static class ControllerRayPatches
|
|
{
|
|
[HarmonyPostfix]
|
|
[HarmonyPatch(typeof(ControllerRay), nameof(ControllerRay.Start))]
|
|
private static void Postfix_BetterCharacterController_Start(ref ControllerRay __instance)
|
|
{
|
|
InteractionTracker.Setup(__instance.gameObject, __instance.hand == CVRHand.Left);
|
|
}
|
|
} |