1
Fork 0
mirror of https://github.com/Steffo99/looping-for-loops.git synced 2024-11-22 08:04:23 +00:00
looping-for-loops/Objects/ConveyorBelt/Gears.gd

14 lines
324 B
GDScript

extends Node2D
var randomize_start_position: bool setget set_randomize_start_position
func set_randomize_start_position(value):
for children in get_children():
children.randomize_start_position = value
func _on_ConveyorBelt_cb_speed_changed(_old, new):
for children in get_children():
children.set_cb_speed(new)