8 lines
191 B
GDScript
8 lines
191 B
GDScript
extends Node2D
|
|
|
|
export var switch_index = 1
|
|
export var type = "switch"
|
|
|
|
func activate():
|
|
for object in get_tree().get_nodes_in_group(str(type) + str(switch_index)):
|
|
object.switch_action()
|