Added the new function to the bomb script
This commit is contained in:
parent
dd68ea4e65
commit
2dc1408780
@ -37,12 +37,7 @@ public class BombPowerUp : MonoBehaviour
|
|||||||
{
|
{
|
||||||
if (boats.CompareTag("Enemy"))
|
if (boats.CompareTag("Enemy"))
|
||||||
{
|
{
|
||||||
if (explosionEffect != null)
|
boats.GetComponent<EnemyReturn>().DestroyShip();
|
||||||
{
|
|
||||||
GameObject newDeathEffect = Instantiate<GameObject>(explosionEffect);
|
|
||||||
newDeathEffect.transform.position = boats.gameObject.transform.position;
|
|
||||||
}
|
|
||||||
Destroy(boats.gameObject);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user