예제 #1
0
 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);
     }
 }
예제 #2
0
 public void HealDamage(int amount)
 {
     HitPoints.Heal(amount, _bonusDto);
 }