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