spawner can now spawn 3d models

This commit is contained in:
Luca 2024-09-17 20:06:11 +02:00
parent ccd3ef577c
commit f025f89401
10 changed files with 59 additions and 34 deletions

13
scripts/monster.gd Normal file
View file

@ -0,0 +1,13 @@
class_name Monster
extends Node3D
@export var monster_stats: MonsterStats
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
var model_instance = monster_stats.model.instantiate()
add_child(model_instance)
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass