Пример #1
0
 void OnTriggerEnter2D(Collider2D other)
 {
     if (other.CompareTag("Player") || other.CompareTag("Player1"))
     {
         other.GetComponent <Move>().SetFire2();
         gt.GetAc(2);
         Destroy(this.gameObject);
     }
 }
Пример #2
0
 void OnTriggerEnter2D(Collider2D other)
 {
     if (other.CompareTag("Player") || other.CompareTag("Player1"))
     {
         fb.getNum();
         gt.GetAc(0);
         Destroy(this.gameObject);
     }
 }