small racing game im working on
Diffstat (limited to 'classes/start.gd')
-rw-r--r--classes/start.gd8
1 files changed, 6 insertions, 2 deletions
diff --git a/classes/start.gd b/classes/start.gd
index 4fca566..13ecb2d 100644
--- a/classes/start.gd
+++ b/classes/start.gd
@@ -1,4 +1,8 @@
-extends PathFollow3D
+extends Block
class_name Start
-@export var needs_collision := true \ No newline at end of file
+@export var mesh: MeshInstance3D
+
+func un_highlight(): mesh.set_surface_override_material(0, MatMap.map[mat])
+func highlight() -> void: mesh.set_surface_override_material(0, MatMap.get_highlight(mat))
+func default_mat(): return 32