Пример #1
0
 /*reduzira a vida do player a uma portengaem */
 public void ReducePlayerHealth(float reductionPercentage)
 {
     if (!playerStatus.getFreezePlayerControlStatus() && !imortal)
     {
         Debug.LogWarning("reduziu minha life por " + playerHealthManager.GetInicialAmountLife() * reductionPercentage);
         playerHealthManager.RemoveHealth(playerHealthManager.GetInicialAmountLife() * reductionPercentage);
     }
 }