Browse Source

修复融合大胖子攻击不了的问题

WGL 4 tháng trước cách đây
mục cha
commit
090cfbd219

+ 4 - 5
ActionTowerDefense/Assets/Resources/Prefab/Conduct/Demonic_BigGiant.prefab

@@ -704,11 +704,6 @@ MonoBehaviour:
   boostNum: 0
   normalDem: {fileID: 5440846222648032759, guid: 05825e721b2832f478f66e78daed901f, type: 3}
   itnHP: 100
-  nextRefHP: 0
-  itnHP_Size: 0
-  isChange: 0
-  toSize: 0
-  nowSize: 0
   changeSizeSpeed: 0.2
 --- !u!114 &1713614217752587255
 MonoBehaviour:
@@ -1495,6 +1490,10 @@ PrefabInstance:
   m_Modification:
     m_TransformParent: {fileID: 901824162977467732}
     m_Modifications:
+    - target: {fileID: 56796490675054764, guid: 12435a63399f44f4a919a57010981786, type: 3}
+      propertyPath: m_Enabled
+      value: 0
+      objectReference: {fileID: 0}
     - target: {fileID: 56796490675054764, guid: 12435a63399f44f4a919a57010981786, type: 3}
       propertyPath: m_Materials.Array.data[0]
       value: 

+ 2 - 0
ActionTowerDefense/Assets/Scripts/Characters/AttackController.cs

@@ -315,6 +315,7 @@ public class AttackController : MonoBehaviour
                     attackMethod[i].maxAttackDis);
             }
         }
+        attackDistance = attackMethod[0].attackDistance;
         slr = GameManager.instance.GetComponent<SoldierLevelRecord>();
     }
 
@@ -357,6 +358,7 @@ public class AttackController : MonoBehaviour
             skill.owner = owner;
         }
         attackDistance = curAttackMethod.attackDistance;
+        
         if (id == 0 && GetComponent<Demonic>())
         {
             attackInfo.isDemSummon = true;