Commit 12413278 authored by wildfirecode13's avatar wildfirecode13

1

parent ca381601
This diff is collapsed.
......@@ -46,7 +46,7 @@ function launchWithCustomModule(customModule) {
}, 100);
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);
}, 2000);
......
......@@ -597,20 +597,6 @@
});
//# 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 () {
try {
if (window.localStorage && window.localStorage.setItem) {
......@@ -943,7 +929,7 @@
switch (_a.label) {
case 0:
this._timeCounter = 0;
if (!(!getGuideInfo() && !this.guidenew)) return [3, 2];
if (!(!props.isNewPlayer && !this.guidenew)) return [3, 2];
return [4, this.guide.startGuide()];
case 1:
_a.sent();
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -6,6 +6,11 @@
"alias": "图片分成几列",
"type": "number",
"default": 3
},
"isNewPlayer":{
"alias": "isNewPlayer",
"type": "number",
"default": 1
}
},
"assets": [{
......
......@@ -129,7 +129,7 @@ export default class GameView extends engine.Container {
// console.log('on start',getGuideInfo());
this._timeCounter = 0;
if (!getGuideInfo()&&!this.guidenew) {
if (!props.isNewPlayer&&!this.guidenew) {
await this.guide.startGuide();
setGuide();
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