보스 완

This commit is contained in:
김도환
2026-05-10 03:48:43 +09:00
parent ee05d6eda9
commit b8a119be87
8 changed files with 361 additions and 190 deletions

View File

@@ -8,8 +8,11 @@ namespace Unicorn
public float maxHealth = 20.0f;
public float health = 20.0f;
public GameObject hpBarPrefab;
protected bool Invulnerable = false;
private Rigidbody2D Rb { get; set; }
private bool _invulnerable = false;
private HpBar _hpBar;
protected void Start()
@@ -21,7 +24,7 @@ namespace Unicorn
public void Damage(DamageInfo info)
{
if (_invulnerable) return;
if (Invulnerable) return;
health -= info.Damage;
OnDamaged(info);
OnKnockback(info);