mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-22 15:38:14 +00:00
6 lines
156 B
GDScript
Executable File
6 lines
156 B
GDScript
Executable File
extends Area2D
|
|
|
|
func area_entered(area: Area2D) -> void:
|
|
if area.owner is Player and area.owner.state_machine.state.name != "Dead":
|
|
area.owner.die(true)
|