Bladeren bron

风筝忍者死亡复活消耗卷轴

1243896040 1 week geleden
bovenliggende
commit
000b4aaa5e

+ 9 - 2
ActionTowerDefense/Assets/Resources/Prefab/ESpirits/ESpirits_KiteNinja.prefab

@@ -95,6 +95,7 @@ MonoBehaviour:
         time: 0
         haveLandingDamage: 0
         landingDamageRate: 0
+        jumpNum: 0
         ControlOrder: 0
       shotDown:
         directionType: 0
@@ -247,6 +248,7 @@ MonoBehaviour:
         time: 0
         haveLandingDamage: 0
         landingDamageRate: 0
+        jumpNum: 0
         ControlOrder: 0
       shotDown:
         directionType: 0
@@ -292,6 +294,9 @@ MonoBehaviour:
   floatingState: 0
   hitState: 0
   isFly: 0
+  jumpNum: 0
+  blowUpDamageRate: 1
+  jumpNumRate: 0
   decelerationRatioX: 2
   decelerationRatioY: 15
   landingDamageFrom: {fileID: 0}
@@ -359,6 +364,7 @@ MonoBehaviour:
         time: 0
         haveLandingDamage: 0
         landingDamageRate: 0
+        jumpNum: 0
         ControlOrder: 0
       shotDown:
         directionType: 0
@@ -1347,6 +1353,7 @@ MonoBehaviour:
         time: 0
         haveLandingDamage: 0
         landingDamageRate: 0
+        jumpNum: 0
         ControlOrder: 0
       shotDown:
         directionType: 0
@@ -1419,6 +1426,7 @@ MonoBehaviour:
         time: 0
         haveLandingDamage: 0
         landingDamageRate: 0
+        jumpNum: 0
         ControlOrder: 0
       shotDown:
         directionType: 0
@@ -1535,7 +1543,6 @@ MonoBehaviour:
   toLargeSize: 0
   cookEffect: {fileID: 0}
   Attack_summonShootCanTransmit: 0
-  debugAttackFrom: 0
   charactertag: 0
   hitResistance: 0
   bc: {fileID: 0}
@@ -1611,7 +1618,7 @@ MonoBehaviour:
   dropProbability: 100
   dropSoulAngle: 60
   lockingLogic: {x: 1, y: 2}
-  revivesNum: 2
+  revivesNum: 1
   revivesPos: {x: 10, y: 1}
   fleeDistance: 10
   fleeSpeedRate: {x: 0.8, y: 0.2}

+ 2 - 0
ActionTowerDefense/Assets/Scripts/Spirits/ESpirits_KiteNinja.cs

@@ -27,6 +27,8 @@ public class ESpirits_KiteNinja : Enemy
         lockingNum = 0;
         player = PlayersInput.instance[0];
         ChooseLockingTarget();
+        mecanim.Skeleton.SetSkin((2 - revivesNum).ToString());
+        mecanim.Skeleton.SetSlotsToSetupPose();
     }
 
     public override void OnState()