Переглянути джерело

修复塔攻击报错问题

wgl 7 місяців тому
батько
коміт
7894a464f7

+ 2 - 2
ActionTowerDefense/Assets/Animations/Tower/TowerCollider_Attack1.anim

@@ -7,7 +7,7 @@ AnimationClip:
   m_PrefabInstance: {fileID: 0}
   m_PrefabAsset: {fileID: 0}
   m_Name: TowerCollider_Attack1
-  serializedVersion: 6
+  serializedVersion: 7
   m_Legacy: 0
   m_Compressed: 0
   m_UseHighQualityCurve: 1
@@ -132,7 +132,7 @@ AnimationClip:
   m_HasMotionFloatCurves: 0
   m_Events:
   - time: 0.23333333
-    functionName: Attack1ShootEvent
+    functionName: Attack_summonShootEvent
     data: 
     objectReferenceParameter: {fileID: 0}
     floatParameter: 0

+ 2 - 2
ActionTowerDefense/Assets/Animations/Tower/TowerCollider_Attack2.anim

@@ -7,7 +7,7 @@ AnimationClip:
   m_PrefabInstance: {fileID: 0}
   m_PrefabAsset: {fileID: 0}
   m_Name: TowerCollider_Attack2
-  serializedVersion: 6
+  serializedVersion: 7
   m_Legacy: 0
   m_Compressed: 0
   m_UseHighQualityCurve: 1
@@ -132,7 +132,7 @@ AnimationClip:
   m_HasMotionFloatCurves: 0
   m_Events:
   - time: 0.33333334
-    functionName: Attack2ShootEvent
+    functionName: Attack_marchShootEvent
     data: 
     objectReferenceParameter: {fileID: 0}
     floatParameter: 0

+ 10 - 12
ActionTowerDefense/Assets/Resources/Prefab/Tower/EnemyTower.prefab

@@ -312,6 +312,7 @@ MonoBehaviour:
   injuryNumText: {fileID: 6467251191553420251, guid: 9b37289f93ea76745ab2cefb79a93e3c, type: 3}
   showInjuryNum: 1
   canFly: 0
+  armor: 0
   ls: {fileID: 0}
   isInSoulTower: 0
   totalDieKeepTime: 2
@@ -319,24 +320,20 @@ MonoBehaviour:
   canHitFly: 0
   isNonAttack: 0
   attackTime: 0
-  totalAttack1Time: 1
-  totalAttack2Time: 1
+  totalAttack_summonTime: 0.5
+  totalAttack_marchTime: 0.5
   attackType: 1
   bulletPrefab: {fileID: 7473170563405908938, guid: 1a8b22d7c1002f9468efb1362b6616a3, type: 3}
   shootPos:
   - {fileID: 3581793008161308374}
   shootTrack: 1
-  attack1Infos:
-  - damage: 100
-    attackDir: {x: -1, y: 0, z: 0}
-    force: 1000
-    changeHurt: 0
-    repelValue: 0
-  attack2Infos: []
+  Attack_summonInfos: []
+  Attack_marchInfos: []
   attackTriggers: []
   addAttackEffect: {fileID: 0}
-  curDamage1: 
-  curDamage2: 
+  armorPiercing: 0
+  curDamage1: 64000000
+  curDamage2: 64000000
   targetTypes: 0100000003000000
   targetCharacter: {fileID: 0}
   attackTarget: {fileID: 0}
@@ -351,8 +348,9 @@ MonoBehaviour:
   beLarger: 0
   toLargeSize: 0
   cookEffect: {fileID: 0}
-  attack1ShootCanTransmit: 0
+  Attack_summonShootCanTransmit: 0
   debugAttackFrom: 0
+  id: 0
   height: 8
   haveDisappearTime: 0
   disappearTime: 0

+ 10 - 12
ActionTowerDefense/Assets/Resources/Prefab/Tower/Tower.prefab

@@ -768,6 +768,7 @@ MonoBehaviour:
   injuryNumText: {fileID: 6467251191553420251, guid: 9b37289f93ea76745ab2cefb79a93e3c, type: 3}
   showInjuryNum: 0
   canFly: 0
+  armor: 0
   ls: {fileID: 0}
   isInSoulTower: 0
   totalDieKeepTime: 2
@@ -775,24 +776,20 @@ MonoBehaviour:
   canHitFly: 0
   isNonAttack: 0
   attackTime: 0
-  totalAttack1Time: 1
-  totalAttack2Time: 1
+  totalAttack_summonTime: 0.5
+  totalAttack_marchTime: 0.5
   attackType: 1
   bulletPrefab: {fileID: 7473170563405908938, guid: 1a8b22d7c1002f9468efb1362b6616a3, type: 3}
   shootPos:
   - {fileID: 6126647544809975593}
   shootTrack: 1
-  attack1Infos:
-  - damage: 100
-    attackDir: {x: -1, y: 0, z: 0}
-    force: 0
-    changeHurt: 0
-    repelValue: 0
-  attack2Infos: []
+  Attack_summonInfos: []
+  Attack_marchInfos: []
   attackTriggers: []
   addAttackEffect: {fileID: 0}
-  curDamage1: 
-  curDamage2: 
+  armorPiercing: 0
+  curDamage1: 64000000
+  curDamage2: 64000000
   targetTypes: 0400000006000000
   targetCharacter: {fileID: 0}
   attackTarget: {fileID: 0}
@@ -807,8 +804,9 @@ MonoBehaviour:
   beLarger: 0
   toLargeSize: 0
   cookEffect: {fileID: 0}
-  attack1ShootCanTransmit: 0
+  Attack_summonShootCanTransmit: 0
   debugAttackFrom: 0
+  id: 0
   isLockSoul: 0
   height: 8
 --- !u!54 &6126647545658003340