diff --git a/README.md b/README.md index dd497156..6ca35f6e 100644 --- a/README.md +++ b/README.md @@ -125,7 +125,7 @@ There's a Unity3D library if you'd like to make the game in Unity3D. console.log("You scored " + data.points + " points!"); }; - gameclient.addEventHandler('scored', someFunctionToHandleScoring); + gameclient.addEventListener('scored', someFunctionToHandleScoring); A simple client might look like this