소스 검색

修复变身结束foot报错

LAPTOP-OM1V99U2\永远de小亡灵 1 년 전
부모
커밋
97728e6894
1개의 변경된 파일1개의 추가작업 그리고 5개의 파일을 삭제
  1. 1 5
      ActionTowerDefense/Assets/Scripts/Foot.cs

+ 1 - 5
ActionTowerDefense/Assets/Scripts/Foot.cs

@@ -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)