Answer by Calesurf
My guess is that the object that the script is attached to is being destroyed before it can play the audio. You can fix this by just deactivating the enemy so the script isn't destroyed. I could be...
View ArticleAnswer by Selcuk_Bor
I would say that Calesurf is right. The way I would go around this problem is to have an object in the level that houses all the audio assets and to simply call it from that source. That way you are...
View ArticleAnswer by Juice-Tin
Here's how you can solve it in order to keep the sound source on the enemy. Make a second script on the enemy called 'PlaySound' or something. All this script will do is play a sound, wait a few...
View ArticleAnswer by Calesurf
My guess is that the object that the script is attached to is being destroyed before it can play the audio. You can fix this by just deactivating the enemy so the script isn't destroyed. I could be...
View ArticleAnswer by Selcuk_Bor
I would say that Calesurf is right. The way I would go around this problem is to have an object in the level that houses all the audio assets and to simply call it from that source. That way you are...
View ArticleAnswer by Juice-Tin
Here's how you can solve it in order to keep the sound source on the enemy. Make a second script on the enemy called 'PlaySound' or something. All this script will do is play a sound, wait a few...
View Article
More Pages to Explore .....