소스 검색

修复击飞方向与角色无关问题

wgl 6 달 전
부모
커밋
81a1bf8636
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      ActionTowerDefense/Assets/Scripts/Characters/MoveCharacter.cs

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

@@ -229,11 +229,11 @@ public class MoveCharacter : Character
                         break;
                     //»÷·É
                     case AttackEffect.BlowUp:
-                        attributeStatus.AddBlowUp(attackInfo.blowUp, attackFrom.transform.localScale.x < 0 ? -1 : 1);
+                        attributeStatus.AddBlowUp(attackInfo.blowUp, attackFrom.bodyTrans.localScale.x < 0 ? -1 : 1);
                         break;
                     //»÷Âä
                     case AttackEffect.ShotDown:
-                        attributeStatus.AddShotDown(attackInfo.shotDown, attackFrom.transform.localScale.x < 0 ? -1 : 1);
+                        attributeStatus.AddShotDown(attackInfo.shotDown, attackFrom.bodyTrans.localScale.x < 0 ? -1 : 1);
                         break;
                     //»÷ÔÎ
                     case AttackEffect.Weak: