use save attribute to solve an high score,but how to test it?
scene 1:menu 2:game 3:see the score
in 2,save attribute,in 1(int scene),load attribute
when I use preview/IOS viewer,have played the game,then click scene3,can see the score.we can judge the behavior work .But when I exit preview and repeat to test ,in scene3 game score is 0
So...how to prove the load attribute is really work?
in 2,save attribute,in 1(int scene),load attribute
when I use preview/IOS viewer,have played the game,then click scene3,can see the score.we can judge the behavior work .But when I exit preview and repeat to test ,in scene3 game score is 0
So...how to prove the load attribute is really work?
Answers
in menu(scene1): when I click "see the score"(change scene3) the score 1st 300,2nd&3rd is 0(only have played one time,so blank)
then click the button to return menu(change scene1),and click "see the score"(change scene3)again,we can see that score 1st is still 300, but 2nd is 300,too.
so the third time I also enter into scene3 ,1st 2nd 3rd are all 300 #-o
Why? must sth wrong about that
have tried but fail
If I don't exit the game in IOS viewer ,the score can be saved in scene3