fix:修复多人捡血包消失问题
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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 枪械系统
|
||||
|
||||
Reference in New Issue
Block a user