import UIMgr from "../base/UIMgr"; cc.Class({ extends: cc.Component, properties: { ani: cc.Animation, labTip: cc.Label, }, // LIFE-CYCLE CALLBACKS: // onLoad () {}, start () { }, setCon(conent){ this.ani.play(); this.labTip.string = conent; this.unscheduleAllCallbacks(); this.scheduleOnce(()=>{ UIMgr.closeUI('TipsLayer'); }, 1.5); }, });