Explorar o código

雷光炮造成伤害跳起手式的跳字

WGL hai 1 mes
pai
achega
f286330cf3

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

@@ -362,7 +362,7 @@ public class MoveCharacter : Character
         {
             GameObject injuryNum;
             //ÊÇÆðÊÖʽ
-            if (attackFrom.CompareTag("Demonic") && attackInfo.attackMethod_Type == AttackMethod_Type.Attack_Summon)
+            if ((attackFrom.CompareTag("Demonic") || attackFrom.CompareTag("Player") )&& attackInfo.attackMethod_Type == AttackMethod_Type.Attack_Summon)
             {
                 injuryNum = PoolManager.Instantiate(injuryNumTextSummon);
                 injuryNum.transform.position = new Vector3(