Buy menu
This commit is contained in:
parent
b59cb48b77
commit
4e8971b12d
12 changed files with 134 additions and 15 deletions
7
scenes/gui/buy_menu/buy_button/buy_button.gd
Normal file
7
scenes/gui/buy_menu/buy_button/buy_button.gd
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
extends Button
|
||||
|
||||
@export var weapon: WeaponResource
|
||||
|
||||
func _ready() -> void:
|
||||
icon = weapon.preview
|
||||
text = str(weapon.cost)
|
||||
Loading…
Add table
Add a link
Reference in a new issue