mirror of
https://github.com/Steffo99/nanogolf.git
synced 2024-11-25 17:44:18 +00:00
16 lines
231 B
GDScript3
16 lines
231 B
GDScript3
|
extends Area2D
|
||
|
class_name HoleController
|
||
|
|
||
|
|
||
|
var over_hole: bool = false
|
||
|
|
||
|
|
||
|
func _on_area_entered(area: Area2D):
|
||
|
if area is GolfHole:
|
||
|
over_hole = true
|
||
|
|
||
|
|
||
|
func _on_area_exited(area: Area2D):
|
||
|
if area is GolfHole:
|
||
|
over_hole = false
|