import { UIBase } from '../UI/UIBase'; const { ccclass, property } = cc._decorator; @ccclass export class AdvanceAnim extends UIBase { public static prefabPath: string = 'prefabs/UIPrefab/advance_anim'; @property(cc.PageView) page: cc.PageView = null; init(currentQ) { this.page.scrollToPage(parseInt(currentQ) - 1, 0.1); setTimeout(() => { this.page.scrollToPage(parseInt(currentQ), 1); setTimeout(() => { this.node.destroy(); }, 2000); }, 1000); } }