summaryrefslogtreecommitdiff
path: root/scenes/characters/PlayerAreaDetect.gd
blob: 7bcf48b8c7e48951e4680db80930fed6a1c21015 (plain)
1
2
3
4
5
6
7
8
9
extends Area

func _on_AreaDetect_area_entered(area):
	if area.name == "WaterArea":
		get_parent().enter_water()

func _on_AreaDetect_area_exited(area):
	if area.name == "WaterArea":
		get_parent().exit_water()