Skip to content

Commit

Permalink
修复欢迎界面在原生平台上的另一个问题
Browse files Browse the repository at this point in the history
  • Loading branch information
rand-fly committed Sep 4, 2016
1 parent 7ec2610 commit 922c069
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/WelcomeScene.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ var WelcomeScene = cc.Scene.extend({
this.addChild(label);

var okButton = creator.createButton(txt.welcomeScene.ok, cc.size(100, 40), function () {
storage.setItem("playedBefore", true);
storage.setItem("playedBefore", "true");
cc.director.runScene(new TutorialGameScene());
});
okButton.setPosition(size.width / 2 - 100, size.height / 2 - 50);
this.addChild(okButton);

var skipButton = creator.createButton(txt.welcomeScene.skip, cc.size(100, 40), function () {
storage.setItem("playedBefore", true);
storage.setItem("playedBefore", "true");
cc.director.runScene(new MainScene());
});
skipButton.setPosition(size.width / 2 + 100, size.height / 2 - 50);
Expand Down

0 comments on commit 922c069

Please sign in to comment.