good weapon switcher
This commit is contained in:
parent
608c4a73c7
commit
caefc9ad94
11 changed files with 237 additions and 14 deletions
|
|
@ -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]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue