Event Go To

This commit is contained in:
2025-05-20 07:28:02 -05:00
parent 7cd96e20d2
commit 6b2fa2b381
7 changed files with 69 additions and 12 deletions

View File

@@ -7,10 +7,11 @@ const PauseSystem = preload("res://scripts/Singleton/Pause.gd")
@export var includeInteractee:bool = true
@export var includeInteractor:bool = true
func start() -> void:
func end() -> void:
super.end()
var ents:Array[Entity] = entities
if interactor && includeInteractor && interactor.entity:
ents.append(interactor.entity)
if interactee && includeInteractee && interactee.entity:
ents.append(interactee.entity)
PAUSE.pause(pauseType, ents)
PAUSE.pause(pauseType, ents)