Attack까지 완성..?

This commit is contained in:
김도환
2026-05-04 00:19:01 +09:00
parent b39116e734
commit 66d48537f7
9 changed files with 692 additions and 19 deletions

View File

@@ -0,0 +1,23 @@
using UnityEngine;
public partial class LivingEntity : MonoBehaviour
{
public float health = 20.0f;
public void Damage(float damage, Collider2D cause)
{
health -= damage;
OnDamaged(damage, cause);
if (health <= 0.0f) OnDeath();
}
private void OnDamaged(float damage, Collider2D cause)
{
throw new System.NotImplementedException();
}
private void OnDeath()
{
throw new System.NotImplementedException();
}
}