Commit 12413278 authored by wildfirecode13's avatar wildfirecode13

1

parent ca381601
This diff is collapsed.
...@@ -46,7 +46,7 @@ function launchWithCustomModule(customModule) { ...@@ -46,7 +46,7 @@ function launchWithCustomModule(customModule) {
}, 100); }, 100);
setTimeout(() => { setTimeout(() => {
engine.globalEvent.dispatchEvent('recycling-start', { time: 1500, maxScore: 200, speed: 3, sound: 1 }); engine.globalEvent.dispatchEvent('recycling-start', { time: 1500, maxScore: 200, speed: 3, sound: 1,isNewPlayer:0 });
const d = engine.gameStage.sceneContainer.getChildAt(0); const d = engine.gameStage.sceneContainer.getChildAt(0);
}, 2000); }, 2000);
......
...@@ -597,20 +597,6 @@ ...@@ -597,20 +597,6 @@
}); });
//# sourceMappingURL=uiConfig.js.map //# sourceMappingURL=uiConfig.js.map
var getGuideInfo = (function () {
try {
if (window.localStorage && window.localStorage.getItem) {
return localStorage.getItem('recyclingGuide');
}
else {
return 0;
}
}
catch (e) {
console.log("getguideinfo--error", e);
return 0;
}
});
var setGuide = function () { var setGuide = function () {
try { try {
if (window.localStorage && window.localStorage.setItem) { if (window.localStorage && window.localStorage.setItem) {
...@@ -943,7 +929,7 @@ ...@@ -943,7 +929,7 @@
switch (_a.label) { switch (_a.label) {
case 0: case 0:
this._timeCounter = 0; this._timeCounter = 0;
if (!(!getGuideInfo() && !this.guidenew)) return [3, 2]; if (!(!props.isNewPlayer && !this.guidenew)) return [3, 2];
return [4, this.guide.startGuide()]; return [4, this.guide.startGuide()];
case 1: case 1:
_a.sent(); _a.sent();
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -6,6 +6,11 @@ ...@@ -6,6 +6,11 @@
"alias": "图片分成几列", "alias": "图片分成几列",
"type": "number", "type": "number",
"default": 3 "default": 3
},
"isNewPlayer":{
"alias": "isNewPlayer",
"type": "number",
"default": 1
} }
}, },
"assets": [{ "assets": [{
......
...@@ -129,7 +129,7 @@ export default class GameView extends engine.Container { ...@@ -129,7 +129,7 @@ export default class GameView extends engine.Container {
// console.log('on start',getGuideInfo()); // console.log('on start',getGuideInfo());
this._timeCounter = 0; this._timeCounter = 0;
if (!getGuideInfo()&&!this.guidenew) { if (!props.isNewPlayer&&!this.guidenew) {
await this.guide.startGuide(); await this.guide.startGuide();
setGuide(); setGuide();
this.guidenew = true; this.guidenew = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment