FantasyRun/Tiles/Tile.gd

30 lines
441 B
GDScript3
Raw Normal View History

2024-09-30 20:50:05 -07:00
extends Node3D
class_name Tile
@onready var path = $MainPath as Path3D
@onready var follow = $MainPath/Follow as PathFollow3D
@onready var spawn_point = $SpawnPoint as Marker3D
2024-09-30 20:50:05 -07:00
var length: float:
get = get_length
2024-09-30 20:50:05 -07:00
func _ready():
pass # Replace with function body.
func _process(delta):
pass
func get_length():
return path.curve.get_baked_length()
func has_next_path() -> bool:
return false
func get_next_path():
return null