From 7d418ee119610422bf638b926ae5a60af855fc00 Mon Sep 17 00:00:00 2001 From: sebastianhampel1 Date: Fri, 14 Jul 2023 19:49:40 -0400 Subject: [PATCH] Test desawpn --- Assets/Materials/Levels/Level0/CeilLightMaterial.mat | 2 +- Assets/Scripts/Item/Pistol/BulletComponent.cs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Assets/Materials/Levels/Level0/CeilLightMaterial.mat b/Assets/Materials/Levels/Level0/CeilLightMaterial.mat index 354b23f..715777f 100644 --- a/Assets/Materials/Levels/Level0/CeilLightMaterial.mat +++ b/Assets/Materials/Levels/Level0/CeilLightMaterial.mat @@ -206,7 +206,7 @@ Material: - _StencilWriteMask: 6 - _StencilWriteMaskDepth: 8 - _StencilWriteMaskGBuffer: 14 - - _StencilWriteMaskMV: 40 + - _StencilWriteMaskMV: 42 - _SubsurfaceMask: 1 - _SupportDecals: 1 - _SurfaceType: 0 diff --git a/Assets/Scripts/Item/Pistol/BulletComponent.cs b/Assets/Scripts/Item/Pistol/BulletComponent.cs index d51f14b..e9b0be9 100644 --- a/Assets/Scripts/Item/Pistol/BulletComponent.cs +++ b/Assets/Scripts/Item/Pistol/BulletComponent.cs @@ -38,7 +38,9 @@ namespace Item if (existed >= duration) { register.bullets.Remove(this); + InstanceFinder.ServerManager.Despawn(gameObject); Destroy(gameObject); + } existed += Time.fixedDeltaTime;