diff --git a/docs/Classes/SyncLists.md b/docs/Classes/SyncLists.md index dbd9bcbc0..b886a9319 100644 --- a/docs/Classes/SyncLists.md +++ b/docs/Classes/SyncLists.md @@ -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)