protected override void OnDeath(Vector3 direction) { ragdoll.ActivateRagdoll(); direction.y = 1.0f; ragdoll.ApplyForce(direction); weapons.DropWeapon(); aiming.enabled = false; camManagaer.EnableKillCam(); }
protected override void OnDeath() { //_audioSource.PlayOneShot(_deathAudioClip); //Drops our wepaon _weapon.DropWeapon(); _aiming.enabled = false; //Disables our cameras GetComponent <PlayerController>().AimCam.SetActive(false); GetComponent <PlayerController>().FollowCam.SetActive(false); //Sets the dying animation trigger _animator.SetTrigger("isDead"); //Enables the CRT camera and death screen _CRTCamera.SetActive(true); _deathScreenUI.SetActive(true); }