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

15 lines
323 B
GDScript3
Raw Normal View History

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
2020-10-04 14:35:24 +00:00
func _on_ConveyorBelt_cb_speed_changed(old, new):
for children in get_children():
children.set_cb_speed(new)