feat: 添加升级面板到arena,添加全局事件监听升级选择
This commit is contained in:
@@ -14,3 +14,10 @@ func _set_data(value: ItemUpgrade) -> void:
|
||||
item_name.text = item_data.item_name
|
||||
item_description.text = item_data.descriptin
|
||||
|
||||
|
||||
|
||||
func _on_custom_button_pressed() -> void:
|
||||
if item_data and is_instance_valid(Global.player):
|
||||
item_data.apply_upgrade()
|
||||
Global.on_upgrade_selected.emit()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user