docs: fix callback example for synclists

This commit is contained in:
Paul Pacheco 2019-04-11 09:14:07 -05:00 committed by GitHub
parent 534a5a5834
commit 99efd67992
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)