Esempio n. 1
0
 //удаление снаряда-пули
 private void DeleteBollet()
 {
     if (Explosive)
     {
         GameObject go = BulletManager.CreateBoomEffect();
         if (go == null)
         {
             go = Instantiate(Boom_effect);
         }
         go.transform.position = transform.position;
         go.SetActive(true);
         go.GetComponent <ParticleSystem>().Play();
     }
     BulletManager.DestroyBullet(_type, this.transform.gameObject);
 }