From 2cb47878a05f096844c5436e57aff38c8c5d85cf Mon Sep 17 00:00:00 2001 From: GL <2365963573@qq.com> Date: Mon, 6 Jan 2025 14:03:59 +0800 Subject: [PATCH] hlh --- Role/Attack.cs | 2 +- Role/Bullet.cs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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 {