Esempio n. 1
0
 void OnTriggerEnter(Collider coll)
 {
     if (coll.gameObject.CompareTag("sword"))
     {
         print("collision " + coll);
         _playerHealth.AddHealth(Health);
         Destroy(this.gameObject);
     }
 }