mirror of
https://github.com/Relintai/the_tower_pandemonium.git
synced 2024-12-21 13:47:36 +01:00
16 lines
339 B
GDScript
16 lines
339 B
GDScript
extends Area
|
|
|
|
|
|
func _ready():
|
|
connect("body_entered", self, "on_body_entered")
|
|
connect("body_exited", self, "on_body_exited")
|
|
|
|
func on_body_entered(body):
|
|
if body.has_method("ladder_area_entered"):
|
|
body.ladder_area_entered(self)
|
|
|
|
|
|
func on_body_exited(body):
|
|
if body.has_method("ladder_area_exited"):
|
|
body.ladder_area_exited(self)
|