protected virtual void Start() { currentHealth = health; if (healthBar) { healthBar.updatePos(this, sprite.sprite); healthBar.updateHealth(this); } }
public void setHealthBar(ShowHealth hBar) { healthBar = hBar; healthBar.updatePos(this, sprite.sprite); }