@@ -28,6 +28,11 @@ public class Foot : MonoBehaviour
moveCharacter = rb.transform.GetComponent<MoveCharacter>();
}
+ private void OnDisable()
+ {
+ trigGroundList.Clear();
+ }
+
private void Update()
{
if (trigGroundList.Count == 0)