Move bombsspawner in ammo package

This commit is contained in:
Andrei Gavra 2019-06-10 17:46:01 +03:00
parent 1273981a38
commit f03fa7f8a0
3 changed files with 4 additions and 1 deletions

View file

@ -48,7 +48,10 @@ namespace src.Ammo
else
{
var key = hit.collider.GetComponent<IExplosable>();
key.onExplosion();
if(key != null)
{
key.onExplosion();
}
break;
}
}