oh-my-git/command_button.gd

13 lines
164 B
GDScript3
Raw Normal View History

2020-09-01 19:45:29 +02:00
extends Button
export var async = false
2020-09-01 19:45:29 +02:00
func _ready():
pass
func pressed():
if async:
$"../..".send_command_async(text)
else:
$"../..".send_command(text)