gd: added input addon
This commit is contained in:
14
guide_examples/action_priority/action_priority.gd
Normal file
14
guide_examples/action_priority/action_priority.gd
Normal file
@ -0,0 +1,14 @@
|
||||
extends Node2D
|
||||
|
||||
|
||||
@export var mapping_context:GUIDEMappingContext
|
||||
@export var spell_toggle:GUIDEAction
|
||||
|
||||
@onready var _layer_1:Control = %Layer1
|
||||
@onready var _layer_2:Control = %Layer2
|
||||
|
||||
|
||||
func _ready():
|
||||
GUIDE.enable_mapping_context(mapping_context)
|
||||
spell_toggle.triggered.connect(func(): _layer_1.hide(); _layer_2.show())
|
||||
spell_toggle.completed.connect(func(): _layer_1.show(); _layer_2.hide())
|
Reference in New Issue
Block a user