@@ -15,13 +15,9 @@ public class Foot : MonoBehaviour
}
public List<GameObject> trigGroundList;
-
- private void Awake()
- {
- rb = GetComponentInParent<Rigidbody>();
- }
private void Update()
{
+ rb = GetComponentInParent<Rigidbody>();
if (trigGroundList.Count == 0)
if (!haveGravity)