feat: OnConnectionEvent callback usage in project and Utilities package [MTTB-1147] by fernando-cortez · Pull Request #907 · Unity-Technologies/com.unity.multiplayer.samples.coop
Conversation
Description
This PR upgrades the project to use the OnConnectionEvent callback from Netcode for GameObjects, in favour over the unrecommended OnClientConnected/OnClientDisconnected callbacks.
This PR also removes an unnecessary Despawn invocation on a NetworkObject that is already marked to despawn with owner.
Issue Number(s)
Contribution checklist
- [ N/A ] Tests have been added for boss room and/or utilities pack
- Release notes have been added to the project changelog file and/or package changelog file
- Pull request has a meaningful description of its purpose
- All commits are accompanied by meaningful commit messages
- JIRA ticket ID is in the PR title or at least one commit message
- Include the ticket ID number within the body message of the PR to create a hyperlink
- [ N/A ] An Index entry has been added in readme.md if applicable
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good!
fernando-cortez
changed the title
feat: OnConnectionEvent callback usage in project and Utilities package
feat: OnConnectionEvent callback usage in project and Utilities package [MTTB-1147]
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters