From 704462779cf10d0779a08068e7e6fd8176f73fb2 Mon Sep 17 00:00:00 2001 From: mwfarb Date: Thu, 20 Jun 2024 09:56:15 -0400 Subject: [PATCH] docs(unity): update runtime example for new callback --- content/unity/runtime.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/unity/runtime.md b/content/unity/runtime.md index 021fc95f..e52493fc 100644 --- a/content/unity/runtime.md +++ b/content/unity/runtime.md @@ -154,15 +154,15 @@ public class ArenaTestButton : MonoBehaviour scene.OnMessageCallback = MessageCallback; // Manually ingest a message, not received from MQTT subscriber - scene.ProcessMessage(payload); + scene.ProcessMessage("realm/s/public/example/scene-options", payload); } /// /// A delegate method used as a callback to go some special handling on incoming messages. /// - public static void MessageCallback(string message) + public static void MessageCallback(string topic, string message) { - Debug.LogFormat("Message received: {0}", message); + Debug.LogFormat("Message received on topic {0}: {1}", topic, message); } ///