Skip to content

Conversation

@LPLafontaineB
Copy link
Contributor

Enemy GameObjects used to be destroyed on both clients and server when hit by a bullet, and the saucer enemy used to be destroyed on the server when going out of frame. This is not the recommended usage with NetworkObjects. In this case, it was not triggering the cleanup code present in the OnNetworkDespawn methods.

This PR changes this so that now the server despawns the NetworkObjects, letting NGO handle the destroying of the associated GameObjects.

@LPLafontaineB LPLafontaineB enabled auto-merge (squash) December 6, 2022 21:40
@LPLafontaineB LPLafontaineB merged commit 2976871 into develop Dec 6, 2022
@LPLafontaineB LPLafontaineB deleted the fix/invaders-enemies-destroyed-not-despawned branch December 6, 2022 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants