diff options
| author | Anson Bridges <bridges.anson@gmail.com> | 2022-10-20 13:54:06 -0400 |
|---|---|---|
| committer | Anson Bridges <bridges.anson@gmail.com> | 2022-10-20 13:54:06 -0400 |
| commit | d34c96aa69d2aee1aaa3bb12366b36ff22d674c0 (patch) | |
| tree | 12c32c2c452922c92d1daf84a4bd5bebb539c204 /godot/scenes/environment/Water.gd | |
| parent | 6dd265a0aee5fa0ed21b3d272fa3bc07d5d483d9 (diff) | |
Diffstat (limited to 'godot/scenes/environment/Water.gd')
| -rw-r--r-- | godot/scenes/environment/Water.gd | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/godot/scenes/environment/Water.gd b/godot/scenes/environment/Water.gd index 6fd4dc2..54bb237 100644 --- a/godot/scenes/environment/Water.gd +++ b/godot/scenes/environment/Water.gd @@ -9,5 +9,9 @@ func create_splash(pos, size): func _on_WaterArea_body_entered(body): if body.has_method("extinguish"): body.extinguish() + if body.has_method("enter_water"): body.enter_water() #print(body.get_aabb().get_area()) create_splash(body.global_transform.origin, 1.5) + +func _on_WaterArea_body_exited(body): + if body.has_method("exit_water"): body.exit_water() |
