diff --git a/README.md b/README.md index c89fed7..798fc0c 100644 --- a/README.md +++ b/README.md @@ -69,12 +69,12 @@ A Unity SDK for Meteor. Supports Unity3D 5.0.0 and higher! yield return (Coroutine)Meteor.Accounts.LoginAsGuest (); // Create a collection - var collection = Meteor.Collection.Create ("collectionName"); + var collection = new Meteor.Collection ("collectionName"); // Add some handlers with the new observer syntax - var observer = new Meteor.Observe(collection, added: (string id, DocumentType document) => { + var observer = collection.Find ().Observe (added: (string id, DocumentType document) => { Debug.Log(string.Format("Document added:\n{0}", document.Serialize())); - }; + }); // Subscribe var subscription = Meteor.Subscription.Subscribe ("subscriptionEndpointName", /*arguments*/ 1, 3, 4);