Exemple #1
0
 void OnTriggerEnter2D(Collider2D other)
 {
     if (other.CompareTag("Player") && !alvo.aberta)
     {
         alvo.Unlock();
         Destroy(gameObject);
     }
 }