Added skill system

This commit is contained in:
2024-02-13 23:12:32 +01:00
parent cf155d9aab
commit d87d4c9e3f
15 changed files with 117 additions and 43 deletions

View File

@ -0,0 +1,7 @@
extends Area3D
func on_body_entered(body: Node3D):
var health := body.get_node_or_null("Health") as HealthComponent
if health:
health.take_damage(DamageInstance.new(100))