diff --git a/Assets/Tutorials/NetworkVariables/Scripts/TeamPlayer.cs b/Assets/Tutorials/NetworkVariables/Scripts/TeamPlayer.cs index 59baa80..ddd31bb 100644 --- a/Assets/Tutorials/NetworkVariables/Scripts/TeamPlayer.cs +++ b/Assets/Tutorials/NetworkVariables/Scripts/TeamPlayer.cs @@ -21,7 +21,13 @@ public void SetTeamServerRpc(byte newTeamIndex) // Update the teamIndex NetworkVariable teamIndex.Value = newTeamIndex; } - + + private void Start() + { + // Apply already connected teams for late joined clients + OnTeamChanged(0,teamIndex.Value); + } + private void OnEnable() { // Start listening for the team index being updated