Esempio n. 1
0
 void OnTriggerEnter2D(Collider2D other)
 {
     Debug.Log("Exit Trigger");
     if (other.tag == "NPC")
     {
         //Destroy(other.gameObject);
         other.gameObject.SetActive(false);
         playManager.CountNPCs();
     }
 }