added a button :D

This commit is contained in:
pennyrigate 2023-03-03 00:01:02 -05:00
parent 215d930022
commit 34b447cff1
5 changed files with 64 additions and 1 deletions

View file

@ -0,0 +1,8 @@
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()