mirror of
https://github.com/Steffo99/looping-for-loops.git
synced 2024-11-22 16:14:22 +00:00
20 lines
322 B
GDScript
20 lines
322 B
GDScript
extends Node2D
|
|
class_name GhostGroup
|
|
|
|
|
|
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()
|