Exemplo n.º 1
0
 private void OnTriggerEnter2D(Collider2D other)
 {
     if (other.CompareTag("Tree") || other.CompareTag("Pond") || other.CompareTag("Rock") || other.CompareTag("Angel"))
     {
         Debug.Log($"Trigger collison with {other}");
         map.DestroyBuilding(other.transform);
         //Destroy(other.gameObject);
         amount_of_actions--;
         Die();
     }
 }