some stuff

This commit is contained in:
brausjonas committed 2022-05-16 05:47:44 +02:00
1 parent afecf1f518
commit 967a194f16
3 files changed
+120 -27

No files matched your search

@@ -180,6 +180,7 @@ public class Player : MonoBehaviour
int currentSlot = (int)hotbar.GetSelectedSlot();
currentSlot += (int)(-Input.GetAxisRaw("Mouse ScrollWheel") * 10);
if (currentSlot > 8) currentSlot = 0;
if (currentSlot < 0) currentSlot = 8;
hotbar.SelectSlot((byte)currentSlot);