mirror of
https://github.com/Steffo99/pineapple-surf.git
synced 2024-11-25 17:24:19 +00:00
13 lines
171 B
GDScript3
13 lines
171 B
GDScript3
|
extends Node
|
||
|
class_name CanSink
|
||
|
|
||
|
|
||
|
## This fell in the water.
|
||
|
## Triggers before SinkArea.has_sunk .
|
||
|
signal sank()
|
||
|
|
||
|
|
||
|
func sink():
|
||
|
$SplashSound.play()
|
||
|
emit_signal("sank")
|