public void healPlayer(int healAmt) { for (int i = 0; i < healAmt; i++) { if (lastFullCell == playerHP.maxHP - 1) { break; } playerHP.Heal(1); Vector2 cellLocation = new Vector2(HPBarPosition.x + (HPCellSpacing * (++lastFullCell)), HPBarPosition.y); Destroy(HPCells [lastFullCell].gameObject); HPCells[lastFullCell] = Instantiate(HPCellFull, cellLocation, Quaternion.identity); } }
public void HealDamage(int amount) { HitPoints.Heal(amount, _bonusDto); }