보스 완
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user