added a button :D
This commit is contained in:
parent
215d930022
commit
34b447cff1
5 changed files with 64 additions and 1 deletions
8
objects/environment/switches/switch.gd
Normal file
8
objects/environment/switches/switch.gd
Normal 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()
|
Loading…
Add table
Add a link
Reference in a new issue