Exemplo n.º 1
0
 private void DestroyMiniGun()
 {
     Instantiate(_explosionPrefab, transform.position, Quaternion.identity);
     _spawnManager.BossMiniGunsDestroyedCounter();
     Destroy(GetComponent <Rigidbody2D>());
     Destroy(GetComponent <BoxCollider2D>());
     Destroy(this.gameObject, 0.5f);
 }