fix:修复多人捡血包消失问题

This commit is contained in:
bzx
2025-09-04 17:32:27 +08:00
parent 3ee6b3d87c
commit 24a4c7de62
2 changed files with 2 additions and 2 deletions

View File

@@ -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;

View File

@@ -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