public void ApplyDamage(float amount, int bodyPart) //TODO: add gunType (1 for AR, 2 for pistol and so on). { //FUTURE TODO: add player ID for multiplayer. if (!roidRage) //first hit awakes the zombie { zomboHealth -= amount * bodyPart; //2x Headshot damage 1x Normal damage zomboMov.OnAware(); roidRage = true; if (zomboHealth <= 0) { zomboHealth = 0; Die(bodyPart); } } else { zomboHealth -= amount * bodyPart;//2x Headshot damage 1x Normal damage zomboMov.OnAware(); if (zomboHealth <= 0) { zomboHealth = 0; Die(bodyPart); } else if (zomboHealth <= 50) //ROID RAGE BOIS { navAgent.acceleration = 10.0f; //TODO: TESTS navAgent.speed = 4.0f; int i = 2; zomboAtk.MultiplyZomboAtkSpeed(i); } } //if (bodyPart == 2) //{ // UI_Manager.Headshot(); //} }