From 4e9ba8fedd93a8d760421d7a44251765f24170a4 Mon Sep 17 00:00:00 2001 From: Nauja Date: Wed, 1 Nov 2023 17:26:44 +0100 Subject: [PATCH] Update index.html --- index.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 67a7cdd..7c09fe4 100644 --- a/index.html +++ b/index.html @@ -96,9 +96,8 @@ url: "https://raw.githubusercontent.com/moroboxai/create-moroboxai-game/master/examples/canvas2d-rgb/agent.*", width: "500px", height: "400px", - onRun: (options) => - player.getController(0).loadAgent(options), - onStop: () => player.getController(0).unloadAgent() + onRun: (options) => player.loadAgent(0, options), + onStop: () => player.unloadAgent(0) }); attachEditorButton.textContent = "Detach Editor";