1234567891011121314151617181920212223242526272829303132 |
- 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);
- },
- });
|