Where is the Bug, because it dont work.
Can you please complete the code for me?
Thanks
#pragma strict
var music : GameObject;
function Awake () {
DontDestroyOnLoad(music);
}
Where is the Bug, because it dont work.
Can you please complete the code for me?
Thanks
#pragma strict
var music : GameObject;
function Awake () {
DontDestroyOnLoad(music);
}
try
DontDestroyOnLoad(gameObject);
instead of
DontDestroyOnLoad(music);