From 86ec28a771cfee74518a41a5dbab8da7c26e30a2 Mon Sep 17 00:00:00 2001
From: Lars Frost <larsf@fsmpi.rwth-aachen.de>
Date: Sun, 22 Sep 2024 20:51:19 +0200
Subject: [PATCH] Add missing figure environment

---
 sections/unity.typ | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sections/unity.typ b/sections/unity.typ
index 665b2e5..391c9c0 100644
--- a/sections/unity.typ
+++ b/sections/unity.typ
@@ -72,7 +72,7 @@ However, it is unsuited if you want to allow a multiplayer mode by connecting mu
 In that case you need the to handle InputEvents, that know what device triggered them.
 
 The complex way, used in that case, is to register handlers for events in `UnityEngine.InputSystem.InputSystem`.
-```cs
+#figure(```cs
 // on device connect or disconnect
 void OnDeviceChange(InputDevice device, InputDeviceChange change);
 // on input
@@ -85,7 +85,7 @@ UnityEngine.InputSystem.InputSystem.onEvent += OnInputEvent;
 // unregister
 UnityEngine.InputSystem.InputSystem.onDeviceChange -= OnDeviceChange;
 UnityEngine.InputSystem.InputSystem.onEvent -= OnInputEvent;
-```
+```, caption: [Usage of InputSystem Package])
 
 #figure(image("/images/Unity/actionmaps.png"), caption: [
   Example of an action map with an action `Move` of type 2D vector,
-- 
GitLab