private void inflictShootDamage(AttributeComponent attackingPlayerAttr, PlayerComponent attackingPlayerComp, AttributeComponent damageTakingPlayerAttr, int damage) { Debug.Log("Damage taken : " + damage); damageTakingPlayerAttr.hp -= damage; attackingPlayerComp.useAP(); attackingPlayerAttr.canShoot = false; //Zeug für Animationen anim = damageTakingPlayerAttr.model.GetComponent<Animator>(); anim.SetTrigger(animId_tgetHit); if (damageTakingPlayerAttr.hp <= 0) killFigurine(damageTakingPlayerAttr); }