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
Post a Comment