Пример #1
0
 void OnTriggerEnter2D(Collider2D other)
 {
     if (other.gameObject.GetComponent <BulletScript>() && other.gameObject.GetComponent <ObjT>() && other.gameObject.GetComponent <ObjT>().typ == ObjT.obj.player_bullet && !got)
     {
         GetComponentInParent <Animator>().SetTrigger("shut_down");
         UpgradesManager.purchaseUpgrades(u.gunEffect, u.pilEffect);
         got = true;
         Invoke("end", .4f);
     }
 }