mirror of
https://github.com/Relintai/the_tower.git
synced 2024-11-12 10:25:06 +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)
|