Exemple #1
0
 public void RecieveDmg(float dmg)
 {
     if (invCounter == maxInv && !playerCont.isDodge && !playerCont.godMode)
     {
         health     -= 5;
         invCounter -= Time.deltaTime;
         partCont.SpawnDamagedParticle(this.transform.position);
         matColor.color = damagedColor;
     }
 }
Exemple #2
0
 public void RecieveDmg(float dmg)
 {
     if (invCounter == maxInv)
     {
         health -= dmg;
         anim.SetTrigger("Hit");
         partCont.SpawnDamagedParticle(this.transform.position);
         invCounter -= Time.deltaTime;
     }
 }