1
Fork 0
mirror of https://github.com/Steffo99/looping-for-loops.git synced 2024-11-22 16:14:22 +00:00
looping-for-loops/Objects/ScrollingObjects/Ghosts/GhostGroup.gd

21 lines
322 B
GDScript3
Raw Normal View History

2020-10-04 18:26:45 +00:00
extends Node2D
2020-10-05 20:20:12 +00:00
class_name GhostGroup
2020-10-04 18:26:45 +00:00
func set_active(value):
for child in get_children():
child.set_active(value)
func activate():
for child in get_children():
child.activate()
func deactivate():
for child in get_children():
child.deactivate()
func toggle():
for child in get_children():
child.toggle()