distractoo / underwaterGame

This is going to be an educational game which i will develop as an assignment given to me by Mcast. The game will consist of an environmental friendly concept which will involve in a scuba diver collecting waste such as metal cans, plastic bags etc..
The Unlicense
0 stars 1 forks source link

Task9- Sound Issue #7

Open distractoo opened 9 years ago

distractoo commented 9 years ago

Basically i am finding an issue when it comes to sound as the sound is not continue to play from one scene to another

distractoo commented 9 years ago

I fixed this issue by creating a dont destroy on load c# Code so that the sound will not be destroyed upon loading the next scene.

Doing this created another problem, when the play looses and plays again the sound plays 2 times in the background so i created a destroy script.

When the player goes to the scene 0(Main menu) the sound is destroyed and when the player hits play and level 1 is loaded the sound is played.

See the commit here :

https://github.com/distractoo/underwaterGame/commit/27ad89c15630cd285e860de0e0b7fe6cbf9ca43c