first_anniversary_godot_jam/scripts/Library/Actions/TriggerBase.gd

19 lines
224 B
GDScript

class_name TriggerBase
extends Node
func triggerNodePath( nodePath:NodePath ):
var a:Action = get_node( nodePath );
triggerAction( a )
func triggerAction( a:Action ):
if a == null:
return
a.onTrigger()