Jelajahi Sumber

飞僵攻击间隔改为0;连续攻击不播放idle动画,有攻击间隔时播放idle动画

SZAND\msx_2 3 bulan lalu
induk
melakukan
dd9c621c29

+ 38 - 1
ActionTowerDefense/Assets/Resources/Prefab/Enemy/Enemy_1007.prefab

@@ -112,6 +112,7 @@ MonoBehaviour:
     blowUp:
       directionType: 0
       dir: {x: 0, y: 0, z: 0}
+      dirRandom: {x: 0, y: 0, z: 0}
       force: 0
       time: 0
       haveLandingDamage: 0
@@ -120,6 +121,7 @@ MonoBehaviour:
     shotDown:
       directionType: 0
       dir: {x: 0, y: 0, z: 0}
+      dirRandom: {x: 0, y: 0, z: 0}
       force: 0
       time: 0
       haveLandingDamage: 0
@@ -133,6 +135,9 @@ MonoBehaviour:
     vulnerable:
       rate: 0
       time: 0
+    stackingWounds:
+      damage: 0
+      time: 0
     changeDamage:
       rate: 0
     sustainedInjury:
@@ -237,6 +242,7 @@ MonoBehaviour:
     blowUp:
       directionType: 0
       dir: {x: 0, y: 0, z: 0}
+      dirRandom: {x: 0, y: 0, z: 0}
       force: 0
       time: 0
       haveLandingDamage: 0
@@ -245,6 +251,7 @@ MonoBehaviour:
     shotDown:
       directionType: 0
       dir: {x: 0, y: 0, z: 0}
+      dirRandom: {x: 0, y: 0, z: 0}
       force: 0
       time: 0
       haveLandingDamage: 0
@@ -258,6 +265,9 @@ MonoBehaviour:
     vulnerable:
       rate: 0
       time: 0
+    stackingWounds:
+      damage: 0
+      time: 0
     changeDamage:
       rate: 0
     sustainedInjury:
@@ -294,6 +304,7 @@ MonoBehaviour:
     blowUp:
       directionType: 0
       dir: {x: 0, y: 0, z: 0}
+      dirRandom: {x: 0, y: 0, z: 0}
       force: 0
       time: 0
       haveLandingDamage: 0
@@ -302,6 +313,7 @@ MonoBehaviour:
     shotDown:
       directionType: 0
       dir: {x: 0, y: 0, z: 0}
+      dirRandom: {x: 0, y: 0, z: 0}
       force: 0
       time: 0
       haveLandingDamage: 0
@@ -315,6 +327,9 @@ MonoBehaviour:
     vulnerable:
       rate: 0
       time: 0
+    stackingWounds:
+      damage: 0
+      time: 0
     changeDamage:
       rate: 0
     sustainedInjury:
@@ -326,8 +341,15 @@ MonoBehaviour:
   isFly: 0
   decelerationRatioX: 2
   decelerationRatioY: 15
+  startFlyAngle: 15
+  flyingRotateSpeedRange: {x: 15, y: 45}
+  compressionDegree: 0.8
+  compressionSpeed: {x: 0.2, y: 0.4}
+  jumpVel: 5
   haveVulnerable: 0
   vulnerableTime: 0
+  stackingWoudsTime: 0
+  stackingWordsNum: 0
   resistances:
     controlOrder: 0
     Float: 0
@@ -1400,7 +1422,7 @@ MonoBehaviour:
   nextEndKeyTime: 0
   curKeyNum: 0
   attackType: 0
-  attackInterval: 5
+  attackInterval: 0
   curDamage: 0
   canHitFly: 1
   attackInfo:
@@ -1418,6 +1440,7 @@ MonoBehaviour:
     blowUp:
       directionType: 0
       dir: {x: 0, y: 0, z: 0}
+      dirRandom: {x: 0, y: 0, z: 0}
       force: 0
       time: 0
       haveLandingDamage: 0
@@ -1426,6 +1449,7 @@ MonoBehaviour:
     shotDown:
       directionType: 0
       dir: {x: 0, y: 0, z: 0}
+      dirRandom: {x: 0, y: 0, z: 0}
       force: 0
       time: 0
       haveLandingDamage: 0
@@ -1439,6 +1463,9 @@ MonoBehaviour:
     vulnerable:
       rate: 0
       time: 0
+    stackingWounds:
+      damage: 0
+      time: 0
     changeDamage:
       rate: 0
     sustainedInjury:
@@ -1477,6 +1504,7 @@ MonoBehaviour:
       blowUp:
         directionType: 0
         dir: {x: 0, y: 0, z: 0}
+        dirRandom: {x: 0, y: 0, z: 0}
         force: 0
         time: 0
         haveLandingDamage: 0
@@ -1485,6 +1513,7 @@ MonoBehaviour:
       shotDown:
         directionType: 0
         dir: {x: 0, y: 0, z: 0}
+        dirRandom: {x: 0, y: 0, z: 0}
         force: 0
         time: 0
         haveLandingDamage: 0
@@ -1498,6 +1527,9 @@ MonoBehaviour:
       vulnerable:
         rate: 2
         time: 3
+      stackingWounds:
+        damage: 0
+        time: 0
       changeDamage:
         rate: 0
       sustainedInjury:
@@ -1541,6 +1573,7 @@ MonoBehaviour:
       blowUp:
         directionType: 0
         dir: {x: 0, y: 0, z: 0}
+        dirRandom: {x: 0, y: 0, z: 0}
         force: 0
         time: 0
         haveLandingDamage: 0
@@ -1549,6 +1582,7 @@ MonoBehaviour:
       shotDown:
         directionType: 0
         dir: {x: 0, y: 0, z: 0}
+        dirRandom: {x: 0, y: 0, z: 0}
         force: 0
         time: 0
         haveLandingDamage: 0
@@ -1562,6 +1596,9 @@ MonoBehaviour:
       vulnerable:
         rate: 0
         time: 0
+      stackingWounds:
+        damage: 0
+        time: 0
       changeDamage:
         rate: 0
       sustainedInjury:

+ 1 - 1
ActionTowerDefense/Assets/Scripts/Characters/Demonic.cs

@@ -690,7 +690,7 @@ public class Demonic : MoveCharacter
         switch (newState)
         {
             case CharacterState.Idle:
-                if (!isConAttack)
+                if (!isConAttack || attackController.attackInterval > 0)
                 {
                     ani.Play("idle", 0, 0);
                 }

+ 1 - 1
ActionTowerDefense/Assets/Scripts/Characters/Enemy.cs

@@ -678,7 +678,7 @@ public class Enemy : MoveCharacter
         switch (newState)
         {
             case CharacterState.Idle:
-                if (!isConAttack)
+                if (!isConAttack || attackController.attackInterval > 0)
                 {
                     ani.Play("idle", 0, 0);
                 }