This commit is contained in:
wulongxiao 2025-01-06 14:51:52 +08:00
commit 1d7b2ac48d
2 changed files with 3 additions and 2 deletions

View File

@ -144,7 +144,7 @@ public class Attack : MonoBehaviour
Target = targetRole.gameObject;
animator.SetTrigger("Attack");
}
else if (bulletPrefab.GetComponent<Bullet>().myBulletType == BulletType.Spraying)
else if (bulletPrefab.GetComponent<Bullet>().myBulletType == BulletType.Spraying|| bulletPrefab.GetComponent<Bullet>().myBulletType==BulletType.XuLi)
{
animator.SetInteger("State", 1);
flag = true;

View File

@ -10,7 +10,8 @@ public enum BulletType
{
Bullet,
Lightning,
Spraying //埻華驗扞
Spraying, //覩뒈톨<EB9288>
XuLi //嗜제묑샌
}
public enum BulletAttributes
{