From 7acc7636f22d92ddc4c6b40c0589e267ff9540cb Mon Sep 17 00:00:00 2001 From: SDraw Date: Sat, 18 Mar 2023 12:45:24 +0300 Subject: [PATCH] Remove controller state change --- ml_amt/Main.cs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/ml_amt/Main.cs b/ml_amt/Main.cs index 05ecf6b..881352a 100644 --- a/ml_amt/Main.cs +++ b/ml_amt/Main.cs @@ -222,8 +222,6 @@ namespace ml_amt if(__0 || (Mathf.Abs(l_currentHeight - l_newHeight) > (l_currentHeight * 0.05f)) || (Vector3.Distance(l_currentCenter, l_newCenter) > (l_currentHeight * 0.05f))) { - bool l_active = ___controller.enabled; - if(__0) ___controller.radius = l_newRadius; ___controller.height = l_newHeight; @@ -243,8 +241,6 @@ namespace ml_amt __instance.forceObject.transform.localScale = new Vector3(l_newRadius + 0.1f, l_newHeight, l_newRadius + 0.1f); if(__instance.groundCheck != null) __instance.groundCheck.localPosition = ____colliderCenter; - - ___controller.enabled = l_active; } } }