mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
docs: fix callback example for synclists
This commit is contained in:
parent
534a5a5834
commit
99efd67992
@ -82,7 +82,7 @@ class Player : NetworkBehaviour {
|
||||
// Use OnStartClient instead if you just want the client to act upon updates
|
||||
void Start()
|
||||
{
|
||||
myStringList.Callback += OnInventoryUpdated;
|
||||
inventory.Callback += OnInventoryUpdated;
|
||||
}
|
||||
|
||||
void OnInventoryUpdated(SyncListItem.Operation op, int index, Item item)
|
||||
|
Loading…
Reference in New Issue
Block a user