private void Killed() { slomoController.RandomSlomo(); zombie.DeathKick(); zombie.MakeRagDoll(); alive = false; zombie.BleedWhenDead(); AudioSource.PlayClipAtPoint(zombieDeathSFX, Camera.main.transform.position, zombieDeathVolume); if (gateBoss) { gate = FindObjectOfType <Gate>(); gate.DestroyGate(); } var killCounter = FindObjectOfType <KillCounter>(); killCounter.AddKill(); zombie.DestroyZombieGameObject(); }