UnityTechnologies / GalacticKittens

Get started making multiplayer games with Netcode for GameObjects
https://unity.com/products/netcode
Other
196 stars 56 forks source link

UpdateNetworkObjectSpawner #10

Closed AlexLeonardKrea closed 1 year ago

AlexLeonardKrea commented 1 year ago

Fixes issue where IsLocalPlayer checks cannot be called on player object.

emgamedev-unity3d commented 1 year ago

Hello!

Sorry for not replying sooner, but thank you for bringing this issue over. I updated the code to now include an option to call a wrapper function around the SpawnAsPlayerObject function from the NetworkObject:

https://github.com/UnityTechnologies/GalacticKittens/commit/ee64431cb70543fd2a2f04705120f22abb2aa128

AlexLeonardKrea commented 1 year ago

Awesome, thank you sir!