Browse Source

fix: Code snippet corrected

Vaclav Elias 2 years ago
parent
commit
7aa70fef0d
1 changed files with 10 additions and 10 deletions
  1. 10 10
      en/manual/scripts/use-a-script.md

+ 10 - 10
en/manual/scripts/use-a-script.md

@@ -56,16 +56,16 @@ Game Studio adds an entity to your scene, with the script as a component on the
 >[!Note]
 >You can customize where scripts appear in the dropdown using the `ComponentCategoryAttribute`:
 
->```cs
->[ComponentCategory("My Startup Scripts")]
->public class SampleStartupScript : StartupScript
->{
->    public override void Start()
->    {
->        // Do some stuff during initialization
->    }
->}
->```
+```cs
+[ComponentCategory("My Startup Scripts")]
+public class SampleStartupScript : StartupScript
+{
+    public override void Start()
+    {
+        // Do some stuff during initialization
+    }
+}
+```
 
 ## Add a script from code