spawner can now spawn 3d models
This commit is contained in:
parent
ccd3ef577c
commit
f025f89401
10 changed files with 59 additions and 34 deletions
13
scripts/monster.gd
Normal file
13
scripts/monster.gd
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue