Skip to content

Commit

Permalink
Update wiki to fix a mistake
Browse files Browse the repository at this point in the history
`Game` should be `GameInstance` with redscript. Currently, copy/paste will lead to compilation error.
  • Loading branch information
poirierlouis authored Jun 23, 2024
1 parent 3a6792f commit 4df3491
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wiki/Home.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 4df3491

Please sign in to comment.