Refactor player animation and collision based entrances
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user