From 24a4c7de62fdabc3ee1c4833dce7ece12c6a1fc9 Mon Sep 17 00:00:00 2001 From: bzx <496597135@qq.com> Date: Thu, 4 Sep 2025 17:32:27 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E5=A4=8D=E5=A4=9A?= =?UTF-8?q?=E4=BA=BA=E6=8D=A1=E8=A1=80=E5=8C=85=E6=B6=88=E5=A4=B1=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/_Zombie/Scripts/Guns/NewGun/Gun2.cs | 2 +- Assets/_Zombie/Scripts/Player.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/_Zombie/Scripts/Guns/NewGun/Gun2.cs b/Assets/_Zombie/Scripts/Guns/NewGun/Gun2.cs index 0216c555..746ced3e 100644 --- a/Assets/_Zombie/Scripts/Guns/NewGun/Gun2.cs +++ b/Assets/_Zombie/Scripts/Guns/NewGun/Gun2.cs @@ -15,7 +15,7 @@ public class Gun2 : Launcher public float flameRange = 5f; // 火焰最大距离 public float flameAngle = 45f; // 火焰锥形夹角 - private float damageInterval = 0.5f; // 每次伤害间隔 + private float damageInterval = 0.2f; // 每次伤害间隔 private float lastDamageTime = 0f; // 玩家所在的层 public AudioSource shotSource; diff --git a/Assets/_Zombie/Scripts/Player.cs b/Assets/_Zombie/Scripts/Player.cs index 6ef5463f..de910bf4 100644 --- a/Assets/_Zombie/Scripts/Player.cs +++ b/Assets/_Zombie/Scripts/Player.cs @@ -238,6 +238,7 @@ public class Player : NetworkRoomPlayer,IDamagable if (prop.itemPropType == ItemPropType.Hp) { GetProp(prop); + prop.Collider(); } } } @@ -246,7 +247,6 @@ public class Player : NetworkRoomPlayer,IDamagable public void GetProp(ItemProp prop) { SetBlood(prop.addHpIndex); - prop.Collider(); } #region 枪械系统