mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Basic Example: Syntax
This commit is contained in:
parent
c7a3310b20
commit
2dca328fff
@ -114,9 +114,9 @@ public override void OnStartClient()
|
||||
playerUI.GetComponent<PlayerUI>().SetPlayer(this, isLocalPlayer);
|
||||
|
||||
// Invoke all event handlers with the current data
|
||||
OnPlayerNumberChanged.Invoke(playerNumber);
|
||||
OnPlayerColorChanged.Invoke(playerColor);
|
||||
OnPlayerDataChanged.Invoke(playerData);
|
||||
OnPlayerNumberChanged?.Invoke(playerNumber);
|
||||
OnPlayerColorChanged?.Invoke(playerColor);
|
||||
OnPlayerDataChanged?.Invoke(playerData);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Loading…
Reference in New Issue
Block a user