Bladeren bron

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

wgl 6 maanden geleden
bovenliggende
commit
81a1bf8636
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  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: