import { App } from "../Manager/App"; const {ccclass, property} = cc._decorator; @ccclass export default class guidePanel extends cc.Component { private static _instance: guidePanel = null; // LIFE-CYCLE CALLBACKS: public static getInstance(): any { if (this._instance == null) { this._instance = new guidePanel(); } return this._instance; } onLoad () { guidePanel._instance = this; } start () { } public showCurGuide(){ for (let i = 0; i < 5; i++) { this.node.children[i].active = false; } this.node.children[App.DataManager.guideStep].active = true; } public hideGuideStep(){ for (let i = 0; i < 5; i++) { this.node.children[i].active = false; } } // update (dt) {} }