private void OnTriggerEnter(Collider other) { Debug.Log(other.name); if (other.GetComponent <PlayerCollision>()) { _barrel.DestroyObject(); LevelManager.Instance.Restart(); } }