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
2020-10-04 16:35:24 +02:00

14 lines
323 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)