Files
CarRacer/wrong_way.gd
2020-11-04 22:59:53 +01:00

13 lines
255 B
GDScript

extends Label
# Called when the node enters the scene tree for the first time.
func _ready():
set_visible(false)
func _on_RaceTrack_wrong_way(coords):
if coords == Vector2(-1,-1):
set_visible(false)
else:
set_visible(true)
set_position(coords)