6 lines
104 B
GDScript
6 lines
104 B
GDScript
|
extends Area2D
|
||
|
|
||
|
func _on_body_entered(body):
|
||
|
if body is Player:
|
||
|
(body as Player).lock_for_end = true
|