- Home /
Game doesn't work anymore when exported for android.
Hello, I am trying to figure out what went wrong with my little game. I managed to make it work fine for windows, I can go from a scene to another, I can play with no problems, but when I try to play it on android when I try to change scenes my game just freezes and I have to close by from recent apps. Another problem that I am facing is that in the game, if you run out of time a little panel pops-out telling you that you have to either restart or go to the main menu. On windows that panels shows fine and when it has to, but on android it doesn't want to pop-out and the game just freezes. I want to mention that I did not change scripts when I imported game from windows to android or vice versa. I used the same scripts and assests for both cases. I looked on other posts to try to solve this problem but still can't figure out how to solve this. This is the code to go back to main menu, which makes my game freeze. I check if the button works, and it does:
public void SpreMeniu()
{
SpawnerScript.AFacutTutorial = true;//here I note that I have done the tutorial
GameHandler.Save_game();//save the boolean
SceneManager.LoadSceneAsync(0);//go to main menu
}
Answer by Darkluca · Apr 12, 2021 at 11:39 PM
Do a logcat analysis on your android to identify the problem.