/// <summary>Change player props, create Ragdoll and destroys the Player</summary> private void OnDeath() { EvaluateHits(m_lastHit); //Player Props m_lastHit?.AddKill(1); m_lastHit?.AddScore(KillPoints); m_photonView.Owner.AddDeath(1); if (m_photonView.Owner.GetScore() >= 1) { m_photonView.Owner.AddScore(-DeathPointLose); } OnPlayerDeath?.Invoke(m_lastHit); PhotonNetwork.Destroy(gameObject); }