Fixed debugger errors in many files and optimized some scenes/code
This commit is contained in:
15
Levels/Chest Detection.gd
Normal file
15
Levels/Chest Detection.gd
Normal file
@@ -0,0 +1,15 @@
|
||||
extends Area2D
|
||||
|
||||
onready var portal = get_node('../PortalDarkForest')
|
||||
onready var shape = portal.get_child(0)
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
shape.set_deferred('disabled', true)
|
||||
return
|
||||
|
||||
|
||||
func _on_chest_detection_body_entered(body: Node) -> void:
|
||||
if body.is_in_group('player'):
|
||||
shape.set_deferred('disabled', false)
|
||||
return
|
Reference in New Issue
Block a user