Chelimbalo/scenes/gui/buy_menu/buy_button/buy_button.gd
2025-12-08 21:04:18 +05:00

7 lines
123 B
GDScript

extends Button
@export var weapon: WeaponResource
func _ready() -> void:
icon = weapon.preview
text = str(weapon.cost)