mirror of
https://github.com/SEISYUNLie/Platform-Jump.git
synced 2026-10-27 03:11:10 +08:00
11 lines
177 B
GDScript
11 lines
177 B
GDScript
extends Area2D
|
|
|
|
var damage = 1
|
|
|
|
func _ready():
|
|
body_entered.connect(_on_body_entered)
|
|
|
|
func _on_body_entered(body):
|
|
if body.is_in_group("player"):
|
|
body.take_damage(damage)
|