From 99efd67992a3188e24998f466265b524313677ab Mon Sep 17 00:00:00 2001 From: Paul Pacheco Date: Thu, 11 Apr 2019 09:14:07 -0500 Subject: [PATCH] docs: fix callback example for synclists --- docs/Classes/SyncLists.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)