[PATCH] Доработка. Трасса. Сектора запрета
This commit is contained in:
@@ -78,6 +78,13 @@ func set_seczap(id: int, szv: Vector4):
|
||||
seczap.set_instance_shader_parameter('radius', sv(szv.x))
|
||||
|
||||
|
||||
func clear_all_seczap():
|
||||
for child in get_children():
|
||||
if child.name.begins_with("SECZAP"):
|
||||
remove_child(child)
|
||||
child.queue_free()
|
||||
|
||||
|
||||
func set_seczap_color(id: int, color: Color):
|
||||
var seczap: = get_node('SECZAP%d' % id)
|
||||
seczap.set_instance_shader_parameter('color', color)
|
||||
|
||||
Reference in New Issue
Block a user