mirror of
https://github.com/Steffo99/swear-jar.git
synced 2024-11-21 23:34:18 +00:00
Merge branch 'main' of https://github.com/Steffo99/ld54
This commit is contained in:
commit
b9ce66a02d
2 changed files with 4 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://cad2rtfm4iooa"
|
||||
uid="uid://bnfwmlf7ems16"
|
||||
path="res://.godot/imported/coal.png-bae62eb66a24aa48a4fb6fc311fab196.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
|
|
|
@ -92,6 +92,9 @@ func _on_ghost_requested(scene: PackedScene, texture: Texture2D):
|
|||
|
||||
func _on_ghost_materialize():
|
||||
var instantiated = ghost.materialize()
|
||||
if not instantiated:
|
||||
print("[Game] The ghost can't materialize; the spawning is cancelled!")
|
||||
return
|
||||
var spawner = instantiated.find_child("Spawner")
|
||||
if spawner != null:
|
||||
spawner.target = self
|
||||
|
|
Loading…
Reference in a new issue