Move bombsspawner in ammo package
This commit is contained in:
parent
1273981a38
commit
f03fa7f8a0
3 changed files with 4 additions and 1 deletions
|
@ -48,7 +48,10 @@ namespace src.Ammo
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
var key = hit.collider.GetComponent<IExplosable>();
|
var key = hit.collider.GetComponent<IExplosable>();
|
||||||
key.onExplosion();
|
if(key != null)
|
||||||
|
{
|
||||||
|
key.onExplosion();
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue