some stuff

This commit is contained in:
brausjonas
2022-05-16 05:47:44 +02:00
parent afecf1f518
commit 967a194f16
3 changed files with 120 additions and 27 deletions
@@ -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);