Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: despawning enemies instead of destroying them #74

Merged
merged 2 commits into from
Dec 6, 2022

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.

3 participants