diff --git a/Role/Attack.cs b/Role/Attack.cs index 959229d..c300014 100644 --- a/Role/Attack.cs +++ b/Role/Attack.cs @@ -144,7 +144,7 @@ public class Attack : MonoBehaviour Target = targetRole.gameObject; animator.SetTrigger("Attack"); } - else if (bulletPrefab.GetComponent().myBulletType == BulletType.Spraying) + else if (bulletPrefab.GetComponent().myBulletType == BulletType.Spraying|| bulletPrefab.GetComponent().myBulletType==BulletType.XuLi) { animator.SetInteger("State", 1); flag = true; diff --git a/Role/Bullet.cs b/Role/Bullet.cs index 3f15cce..336bb69 100644 --- a/Role/Bullet.cs +++ b/Role/Bullet.cs @@ -10,7 +10,8 @@ public enum BulletType { Bullet, Lightning, - Spraying //原地喷射 + Spraying, //原地喷射 + XuLi //蓄力攻击 } public enum BulletAttributes {