- Home /
[OSX Build] The game doesn't work after build
Hi, My game doesn't work after build, although it works in the Unity Editor.
Situation: The OSX build mostly works correctly, but somehow cannot show the result screen which should be called by GameOver()
. That function itself is working as it plays audio clip and stops the time counter. I guess "SetActive(true)" is somehow not working in the built app?
Code:
private void Gameover(float cleartime) {
pause.Pausable (false);
bgm.volume = 0.1f;
if (!failed) {
ThisGame.AudioPlay (gameObject, "clear");
} else {
ThisGame.AudioPlay (gameObject, "failure");
}
resultScreen.SetActive (true);
Debug.Log (resultScreen.activeInHierarchy);
result.Show (players, cleartime);
waiting = true;
}
Environment: Unity 20173.1f1 Personal OSX 10.12.16
I read lots of similar threads and tried console.app (there seems no error) and restarting mac already, I'll try Windows version in bootcamp now, but I need this Mac version ready today.
project file: https://drive.google.com/open?id=15Ea_GuvX9qpMtDKvYlpyjbj1cH9zfY88 Windows version: https://drive.google.com/open?id=1pr9LL8TS69NVvCJ-DFdpcwZ9DhdubzAC Mac version: https://drive.google.com/open?id=1rfspFSvC19dPaM1dky6Qlg_vwtDy7TWx
Thanks for your help!!