From 4df3491a8c7df5cd54c5738fbe69609d6998ed14 Mon Sep 17 00:00:00 2001 From: Louis Poirier Date: Sun, 23 Jun 2024 14:58:55 +0200 Subject: [PATCH] Update wiki to fix a mistake `Game` should be `GameInstance` with redscript. Currently, copy/paste will lead to compilation error. --- wiki/Home.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wiki/Home.md b/wiki/Home.md index 0518eb90..3c5fa3b6 100644 --- a/wiki/Home.md +++ b/wiki/Home.md @@ -31,7 +31,7 @@ class MyService extends ScriptableService { Service instance can be accessed using service container: ```swift -let myService = Game.GetScriptableServiceContainer().GetService(n"MyService") as MyService; +let myService = GameInstance.GetScriptableServiceContainer().GetService(n"MyService") as MyService; ``` Service properties marked as `persistent` will keep their state forever.