Ejemplo n.º 1
0
 void OnTriggerEnter(Collider other)
 {
     if (other.CompareTag("MainCamera"))
     {
         Destroy(gameObject);
         result.win();
     }
 }
Ejemplo n.º 2
0
 void OnTriggerEnter(Collider other)
 {
     if (other.CompareTag("bullet"))
     {
         Debug.Log("Collide");
         manager.win();
     }
 }