Browse Source

修复我方召唤刺客一直出的问题,修复刺客冲刺没有伤害的问题

WGL 2 months ago
parent
commit
2cdff46ee2

+ 2 - 4
ActionTowerDefense/Assets/Resources/Prefab/MySoldier/Spirits_Assassin.prefab

@@ -390,7 +390,6 @@ MonoBehaviour:
   isBack: 0
   baseSortingOrder: 0
   runSpeed: 0
-  summonTime: 0
   isReturnSoulTower: 0
   origSoulPos: {x: 0, y: 0, z: 0}
   isRecorded: 0
@@ -426,6 +425,8 @@ MonoBehaviour:
   targetTypes: 040000000500000006000000
   attackSummonId: 0
   attackMarchId: 0
+  summonTime:
+  - 0.3
   attackMethod_summon:
   - attackName: attack_summon
     attackType: 0
@@ -483,7 +484,6 @@ MonoBehaviour:
     minAttackDis: 0
     searchMode: 0
     canHitFly: 1
-    armorPiercing: 0
     bulletPrefab: {fileID: 0}
     shootPos: []
     maxUpAngle: 0
@@ -548,7 +548,6 @@ MonoBehaviour:
     minAttackDis: 0
     searchMode: 0
     canHitFly: 1
-    armorPiercing: 0
     bulletPrefab: {fileID: 0}
     shootPos: []
     maxUpAngle: 0
@@ -613,7 +612,6 @@ MonoBehaviour:
     minAttackDis: 0
     searchMode: 0
     canHitFly: 0
-    armorPiercing: 0
     bulletPrefab: {fileID: 0}
     shootPos: []
     maxUpAngle: 0

+ 1 - 1
ActionTowerDefense/Assets/Scripts/Spirits/Spirits_Assassin.cs

@@ -22,7 +22,6 @@ public class Spirits_Assassin : Demonic
     public override void Awake()
     {
         base.Awake();
-        //dashTrigger.attackInfo.damage = attackController.attackMethod[0].attackInfo.damage;
     }
     public override void Init()
     {
@@ -47,6 +46,7 @@ public class Spirits_Assassin : Demonic
             {
                 case CharacterState.Attack:
                     rb.velocity = (bodyTrans.localScale.x > 0 ? 1 : -1) * rushSpeed * targetDir;
+                    dashTrigger.gameObject.SetActive(true);
                     if (Vector3.Distance(startRushPos, transform.position) > rushDistance)
                     {
                         dashTrigger.gameObject.SetActive(false);