12 lines
186 B
GDScript3
Raw Normal View History

2024-02-12 23:22:27 +00:00
class_name SkillsComponent
extends Node
var player: Player
func _ready():
player = owner
player.attacked.connect(attack)
func attack():
%Health.take_damage(DamageInstance.new(10))