ld38-blacksheep/scripts/eat_button.gd

14 lines
314 B
GDScript3
Raw Permalink Normal View History

2017-04-23 19:34:18 +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_2")):
emit_signal('pressed')