Refactor player animation and collision based entrances

This commit is contained in:
2026-04-02 16:11:29 -05:00
parent eabfeab91a
commit 7ad56fb876
28 changed files with 187 additions and 118 deletions

View File

@@ -11,23 +11,23 @@ func GetAllTreasureChests() -> Array[BaseChest]:
return arr
func GetAllInteractiveLoadingZones() -> Array[InteractiveLoadingZone]:
func GetAllInteractiveEntrances() -> Array[InteractiveEntrance]:
var nodes := get_tree().get_nodes_in_group("Interactive Loading Zone Group")
var arr: Array[InteractiveLoadingZone] = []
var arr: Array[InteractiveEntrance] = []
for node in nodes:
if node is InteractiveLoadingZone:
if node is InteractiveEntrance:
arr.append(node)
return arr
func GetAllLoadingZoneTransporters() -> Array[LoadingZoneTransporter]:
func GetAllLoadingZoneTransporters() -> Array[EntranceTransporter]:
var nodes := get_tree().get_nodes_in_group("Loading Zone Transporter Group")
var arr: Array[LoadingZoneTransporter] = []
var arr: Array[EntranceTransporter] = []
for node in nodes:
if node is LoadingZoneTransporter:
if node is EntranceTransporter:
arr.append(node)
return arr