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