mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 22:39:22 +00:00
[SmoothRay] Slight change to patch
Compiler already would do this, but I figured I'd throw it here too just because I can.
This commit is contained in:
parent
1bcb3b0d69
commit
1045679be1
1 changed files with 2 additions and 4 deletions
|
@ -9,9 +9,7 @@ class PlayerSetupPatches
|
||||||
[HarmonyPatch(typeof(PlayerSetup), nameof(PlayerSetup.Start))]
|
[HarmonyPatch(typeof(PlayerSetup), nameof(PlayerSetup.Start))]
|
||||||
static void Post_PlayerSetup_Start(ref PlayerSetup __instance)
|
static void Post_PlayerSetup_Start(ref PlayerSetup __instance)
|
||||||
{
|
{
|
||||||
var leftSmoother = __instance.vrLeftHandTracker.gameObject.AddComponent<SmoothRayer>();
|
__instance.vrLeftHandTracker.gameObject.AddComponent<SmoothRayer>().ray = __instance.leftRay;
|
||||||
leftSmoother.ray = __instance.leftRay;
|
__instance.vrRightHandTracker.gameObject.AddComponent<SmoothRayer>().ray = __instance.rightRay;
|
||||||
var rightSmoother = __instance.vrRightHandTracker.gameObject.AddComponent<SmoothRayer>();
|
|
||||||
rightSmoother.ray = __instance.rightRay;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue