Комментарии:
What if I want to change the audio that's playing when a certain monster or boss dies instead of the player?
Ответитьmy musics starts at the same time. what could be the problem ? also my music wont stop when my character is dead.
Ответитьcan u plz write the script in the comment because my script doesn't work
ОтветитьI tried this method to play a sound when it's game over, and it's not working. Can you help me out?
Ответитьwork thx
ОтветитьHi there,
Many thanks for the video. I have followed all your steps, making sure that everything you showed on your video matches my settings/script, and for some weird reason once the player is dying the "GameOver" music won't play. Instead, the "LevelMusic" would keep playing. Any thoughts?
PS: DeathSong is not clicked as a play on awake. It is the correct audio. True/False in the script are both correct.
لا تستمر
Ответитьbest
Ответитьi had the following issue: the level music that i put in the "first" audiosource played correctly, but when my player died, or when i got "defeat" , the level music stop but the "defeat" music (second audio source) didn't start play, the code was correct because the booleans switched right, also i tested it with a debug log. But i don't know why the second audio source was't working, well, in short, i fixed it only deleting the second audio source (defeat song) from hierarchy and creating it again, and putting it on the script in inspector
ОтветитьI've been searching all over internet for this thing and Thankfully...
Ответить