Commit df1e9a64 authored by 李维's avatar 李维

在数字版上加引导提示

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