import Common5 from "../../Platform/th/Common5"; import TTAPI from "../../Platform/tt/TTAPI"; import PrefabManage, { GameType } from "../PrefabManager/PrefabManage"; const { ccclass, property } = cc._decorator; @ccclass export default class LeftBtnUI extends cc.Component { // LIFE-CYCLE CALLBACKS: // onLoad () {} start() { } // update (dt) {} onBtnClickSetting() { // Common5.playEffect("sound/按键点击"); PrefabManage.loadPrefabByType(GameType.Setting); } onBtnClickCebianlan() { // Common5.playEffect("sound/按键点击"); PrefabManage.loadPrefabByType(GameType.CeBianLan); } onBtnClickAddDesktop() { TTAPI.addToZM(() => { console.log("添加桌面成功!"); }); } onBtnClickFeedback() { // Common5.playEffect("sound/按键点击"); PrefabManage.loadPrefabByType(GameType.Feedback); } }