c# - Unity Android App crashing -


my app crashes on title scene (my second scene). start code scene this

 animatorref = getcomponent<animator>(); 

and in script

void start () {         if (playerprefs.getint("playboo") == 1)         {             death.play();             playerprefs.setint("playboo", 0);         }     } 

there scene before initialises player prefs

void start () {         playerprefs.setint("playboo", 0);         scenemanager.loadscene(scenemanager.getactivescene().buildindex + 1);     } 

there method loads scene. there idle animation plays @ start has no problems loading in editor.


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -