good weapon switcher

This commit is contained in:
Michael Campbell 2026-04-30 05:47:24 -04:00
parent 608c4a73c7
commit caefc9ad94
11 changed files with 237 additions and 14 deletions

View file

@ -41,7 +41,7 @@ var speed_mul := 1.
var gun_index := 0:
set(v):
gun_index = v % guns.size()
%GunLabel.text = gun.name
%WeaponUI.active_weapon = gun_index
var gun: Gun:
get: return guns[gun_index]