mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-01 13:59:22 +00:00
22 lines
No EOL
570 B
C#
22 lines
No EOL
570 B
C#
using ABI_RC.Core;
|
|
using ABI_RC.Core.Player;
|
|
using ABI_RC.Core.Player.TransformHider;
|
|
using ABI_RC.Core.Savior;
|
|
using ABI_RC.Systems.Camera;
|
|
using HarmonyLib;
|
|
using UnityEngine;
|
|
|
|
namespace NAK.AvatarCloneTest;
|
|
|
|
public static class Patches
|
|
{
|
|
[HarmonyPrefix]
|
|
[HarmonyPatch(typeof(TransformHiderUtils), nameof(TransformHiderUtils.SetupAvatar))]
|
|
private static bool OnSetupAvatar(GameObject avatar)
|
|
{
|
|
if (!AvatarCloneTestMod.EntryUseAvatarCloneTest.Value) return true;
|
|
avatar.AddComponent<AvatarClone>();
|
|
return false;
|
|
}
|
|
}
|
|
|