- Home /
2D platformer unity, respawn function not working in android build but works fine in editor,Respawn not working in Android build of @D unity platformer game
Hello there, so I was building a 2D platformer and it had a respawn function where the game manager script accessed from the Character controller script of the player. But after I made one more level and several changes in level design, and built it in android, on playtesting the apk on a phone, I realized the respawn did not work and upon death, the game just was paused in the death animation and you had to go back to the main menu to restart. Is there any reason why would that be happening? Also I have noticed that after the death of the player the game lets the character controller script access functions of the gamemanager script but after that the gamemanager cannot access controller script in the android build whereas its working fine in the editor. Why would that be? ,Hello there, so I was building a 2D platformer and it had a respawn function where the game manager script accessed from the Character controller script of the player. But after I made one more level and several changes in level design, and built it in android, on playtesting the apk on a phone, I realized the respawn did not work and upon death, the game just was paused in the death animation and you had to go back to the main menu to restart. Is there any reason why would that be happening? Also on constant debugging I realized that when the player dies, the script goes from CharacterController to GameManager but somehow the gamemanager cannot call functions from Character control to return control to the player. It works fine in editor but not in the android build.
Your answer
![](https://koobas.hobune.stream/wayback/20220613034300im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Camera Rotation Problem on Mobile 0 Answers
Unity tries wrong Android "run device" 1 Answer
Android module not shown in editor. 0 Answers
Gradle build fail Unity 0 Answers
Unity Android Build Dosn't Work On The Device But Works In The Editor. 0 Answers