18 lines
361 B
GDScript3
Raw Normal View History

2019-11-21 23:52:54 +01:00
extends StaticBody
func _ready():
var forks = get_tree().get_nodes_in_group("PipeForks")
for f in forks:
f.connect("flow_changed", self, "_update_pipe_colors")
2019-12-14 21:05:09 +01:00
func _update_pipe_colors():
var pipes = get_tree().get_nodes_in_group("Pipes")
for p in pipes:
p.update_content_color()
2019-11-21 23:52:54 +01:00
func _on_Fork1_flow_changed():
pass # Replace with function body.