import User from "../FrameWork/User/User"; import AppPlatform from "../FrameWork/Util/AppPlatform"; import Common5 from "../Platform/th/Common5"; import TTAPI from "../Platform/tt/TTAPI"; import PhysicalPowerManger from "../ttFrame/manager/PhysicalPowerManger"; const { ccclass, property } = cc._decorator; @ccclass export default class levelStar extends cc.Component { protected gameInfo = null; protected gameNo: number = 0;//该关卡是第几关 // LIFE-CYCLE CALLBACKS: onLoad() { } start() { } initCell(num, info) { this.gameInfo = info; this.gameNo = num; Common5.btnRegister_custom(this.node, () => { this.clickFunc(); }) } clickFunc() { console.log(1111); } }