Commit df1e9a64 authored by 李维's avatar 李维

在数字版上加引导提示

parent ab499892
...@@ -33,15 +33,13 @@ cc.Class({ ...@@ -33,15 +33,13 @@ cc.Class({
start () { start () {
const currentStage = "NJ_YouLeChang"; const currentStage = "NJ_YouLeChang";
const nextStage = "NJ_Menu"; const nextStage = "NJ_Menu";
const tipsNode = cc.find("tips", this.node) const tipsNode = cc.find("tips", this.node);
window.tipsNode = tipsNode;
let tipsStage = cc.sys.localStorage.getItem('SYS_GUIDE_TIPS'); let tipsStage = cc.sys.localStorage.getItem('SYS_GUIDE_TIPS');
if(!tipsStage) { if(!tipsStage) {
tipsStage = currentStage; tipsStage = currentStage;
cc.sys.localStorage.setItem('SYS_GUIDE_TIPS', tipsStage); cc.sys.localStorage.setItem('SYS_GUIDE_TIPS', tipsStage);
} }
if(tipsStage == currentStage) { if(tipsStage == currentStage) {
console.log("显示提示指引 ", currentStage);
tipsNode.active = true; tipsNode.active = true;
} }
cc.sys.localStorage.setItem('SYS_GUIDE_TIPS', nextStage); cc.sys.localStorage.setItem('SYS_GUIDE_TIPS', nextStage);
......
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