修改医疗包不消失
This commit is contained in:
@@ -225,7 +225,7 @@ public class Player : NetworkRoomPlayer,IDamagable
|
||||
if (other.tag == "WeaponProp")
|
||||
{
|
||||
WeaponProp prop = other.transform.GetComponent<WeaponProp>();
|
||||
//prop.Collider();
|
||||
|
||||
|
||||
if(NowGunIndex==(int)prop.weaponType)
|
||||
return;
|
||||
|
||||
@@ -26,7 +26,8 @@ public class ItemProp : NetworkBehaviour
|
||||
CoroutineTaskManager.Instance.WaitSecondTodo(() =>
|
||||
{
|
||||
Collider();
|
||||
}, 15f);
|
||||
NetworkServer.Destroy(transform.gameObject);
|
||||
}, 8f);
|
||||
}
|
||||
|
||||
[ClientRpc]
|
||||
@@ -45,6 +46,6 @@ public class ItemProp : NetworkBehaviour
|
||||
isDeal = true;
|
||||
box.enabled = false;
|
||||
transform.gameObject.SetActive(false);
|
||||
NetworkServer.Destroy(transform.gameObject);
|
||||
//NetworkServer.Destroy(transform.gameObject);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user