From a0c4ce5ec1b80131e254ed70649b33b1a1ffeb20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20L=C3=BCbe=C3=9F?= Date: Sun, 7 Apr 2024 00:15:37 +0200 Subject: [PATCH] Items droppen --- 3d Prototyp/Assets/Scripts/Character.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/3d Prototyp/Assets/Scripts/Character.cs b/3d Prototyp/Assets/Scripts/Character.cs index 4b7c3552..513ddad7 100644 --- a/3d Prototyp/Assets/Scripts/Character.cs +++ b/3d Prototyp/Assets/Scripts/Character.cs @@ -136,6 +136,10 @@ public class Character : MonoBehaviour Invoke(nameof(ResetJump), jumpCooldown); } + if (Input.GetKeyDown(KeyCode.G)) + { + PickupItem(null); + } } private void MovePlayer()