SZAND\msx_2 1 жил өмнө
parent
commit
b56fd8c6d1

+ 1 - 1
ActionTowerDefense/Assets/Resources/Prefab/Boss/YuMenGuan/Block/Block.prefab

@@ -242,7 +242,7 @@ MonoBehaviour:
   canNotAddForce: 0
   canNotChangeHurt: 0
   invincibleTime: 0
-  totalDieKeepTime: 1
+  totalDieKeepTime: 2.1
   dieKeepTime: 0
   canHitFly: 0
   isNonAttack: 0

+ 2 - 0
ActionTowerDefense/Assets/Resources/Prefab/Boss/YuMenGuan/Boss_YuMenGuan.prefab

@@ -21720,6 +21720,8 @@ MonoBehaviour:
   rb: {fileID: 0}
   haveGravity: 1
   trigGroundList: []
+  myBaGuaTrigger: {fileID: 0}
+  baGuaTrigger: []
 --- !u!1 &6300475371285612510
 GameObject:
   m_ObjectHideFlags: 0

+ 6 - 2
ActionTowerDefense/Assets/Scripts/Boss/YuMenGuan/Block.cs

@@ -80,7 +80,10 @@ public class Block : Character
         switch (newState)
         {
             case CharacterState.Die:
-                ChangeAttackState(State.none);
+                if (!isTowerBomb)
+                {
+                    ChangeAttackState(State.none);
+                }
                 dieKeepTime = totalDieKeepTime;
                 break;
             default:
@@ -179,13 +182,14 @@ public class Block : Character
                 ani.Play("show", 0, 0);
                 break;
             case State.charge:
-                ani.Play("charge", 0, 0);
+                ani.Play("idle", 0, 0);
                 hasChargeTime = 0;
                 break;
             case State.sprint:
                 ani.Play("move_start", 0, 0);
                 break;
             case State.bomb:
+                ani.Play("charge", 0, 0);
                 if (isTowerBomb)
                 {
                     rb.velocity = Vector3.zero;