Skip to content

Commit 975e001

Browse files
OnNetworkDespawn added to ServerProjectileLogic to prevent unspawned RPCs (#593)
1 parent d914988 commit 975e001

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Assets/BossRoom/Scripts/Server/Game/Entity/ServerProjectileLogic.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@ public override void OnNetworkSpawn()
8282
m_NpcLayer = LayerMask.NameToLayer("NPCs");
8383
}
8484

85+
public override void OnNetworkDespawn()
86+
{
87+
m_Started = false;
88+
}
89+
8590
void FixedUpdate()
8691
{
8792
if (!m_Started)

0 commit comments

Comments
 (0)