private void OnTriggerEnter(Collider other) { if (other.tag == "Player") { PlayerRigidbody.isKinematic = true; PlayerRigidbody.useGravity = false; PlayerDeathScript.PlayerDeadTrue(); } }