13 lines
281 B
GDScript3
13 lines
281 B
GDScript3
|
|
class_name UninstallHackModal extends ConfirmationDialog
|
||
|
|
|
||
|
|
var square : Vector3i
|
||
|
|
|
||
|
|
func button_pressed(button : String) -> void:
|
||
|
|
match(button):
|
||
|
|
"detonate":
|
||
|
|
Game.player.uninstall_hack_at(square)
|
||
|
|
Game.player.close_modal()
|
||
|
|
"attack":
|
||
|
|
Game.player.close_modal()
|
||
|
|
_: return
|