diff --git a/AvatarScale/AvatarScaleManager.cs b/AvatarScale/AvatarScaleManager.cs index 26cef37..1630265 100644 --- a/AvatarScale/AvatarScaleManager.cs +++ b/AvatarScale/AvatarScaleManager.cs @@ -220,13 +220,13 @@ public class AvatarScaleManager : MonoBehaviour } } - void Update() + private void Update() { ApplyAvatarScaling(); ApplyComponentScaling(); } - void LateUpdate() + private void LateUpdate() { ApplyAvatarScaling(); ApplyComponentScaling(); diff --git a/AvatarScale/HarmonyPatches.cs b/AvatarScale/HarmonyPatches.cs index bcec986..b5af811 100644 --- a/AvatarScale/HarmonyPatches.cs +++ b/AvatarScale/HarmonyPatches.cs @@ -8,11 +8,11 @@ using RootMotion.FinalIK; namespace NAK.AvatarScaleMod.HarmonyPatches; -class PlayerSetupPatches +internal class PlayerSetupPatches { [HarmonyPostfix] [HarmonyPatch(typeof(PlayerSetup), nameof(PlayerSetup.SetupAvatar))] - static void Postfix_PlayerSetup_SetupAvatar(ref PlayerSetup __instance) + private static void Postfix_PlayerSetup_SetupAvatar(ref PlayerSetup __instance) { try { @@ -27,11 +27,11 @@ class PlayerSetupPatches } } -class PuppetMasterPatches +internal class PuppetMasterPatches { [HarmonyPostfix] [HarmonyPatch(typeof(PuppetMaster), nameof(PuppetMaster.AvatarInstantiated))] - static void Postfix_PuppetMaster_AvatarInstantiated(ref PuppetMaster __instance) + private static void Postfix_PuppetMaster_AvatarInstantiated(ref PuppetMaster __instance) { try { @@ -45,11 +45,11 @@ class PuppetMasterPatches } } -class GesturePlaneTestPatches +internal class GesturePlaneTestPatches { [HarmonyPostfix] [HarmonyPatch(typeof(GesturePlaneTest), nameof(GesturePlaneTest.Start))] - static void Postfix_GesturePlaneTest_Start() + private static void Postfix_GesturePlaneTest_Start() { try { diff --git a/AvatarScale/Main.cs b/AvatarScale/Main.cs index 7243d53..03071c8 100644 --- a/AvatarScale/Main.cs +++ b/AvatarScale/Main.cs @@ -16,7 +16,7 @@ public class AvatarScaleMod : MelonMod ApplyPatches(typeof(HarmonyPatches.GesturePlaneTestPatches)); } - void ApplyPatches(Type type) + private void ApplyPatches(Type type) { try { diff --git a/AvatarScale/ModSettings.cs b/AvatarScale/ModSettings.cs index c2ef36f..e07b7fa 100644 --- a/AvatarScale/ModSettings.cs +++ b/AvatarScale/ModSettings.cs @@ -4,7 +4,7 @@ namespace NAK.AvatarScaleMod; // i like this -static class ModSettings +internal static class ModSettings { public static readonly MelonPreferences_Category Category = MelonPreferences.CreateCategory(nameof(AvatarScaleMod)); @@ -27,12 +27,12 @@ static class ModSettings AvatarScaleGesture.GestureEnabled = EntryUseScaleGesture.Value; } - static void OnEntryEnabledChanged(bool oldValue, bool newValue) + private static void OnEntryEnabledChanged(bool oldValue, bool newValue) { AvatarScaleManager.GlobalEnabled = newValue; } - static void OnEntryUseScaleGestureChanged(bool oldValue, bool newValue) + private static void OnEntryUseScaleGestureChanged(bool oldValue, bool newValue) { AvatarScaleGesture.GestureEnabled = newValue; }