ld38-blacksheep/scripts/button_ram.gd

14 lines
314 B
GDScript3
Raw Permalink Normal View History

2017-04-22 22:58:11 +00:00
extends ToolButton
# class member variables go here, for example:
# var a = 2
# var b = "textvar"
func _ready():
# Called every time the node is added to the scene.
# Initialization here
set_fixed_process(true)
func _fixed_process(delta):
if(Input.is_action_pressed("ui_button_1")):
emit_signal('pressed')