/* * @Descripttion: 主界面 * @version: 1.0.0 * @Author: YeeChan * @Date: 2020-07-24 12:58:39 */ const { ccclass, property } = cc._decorator; @ccclass export default class FMMainScene extends cc.Component { @property({ tooltip: "广告Main预制体(那个平台拖那个)", type: cc.Prefab }) protected adMainPrefab: cc.Prefab = null; // protected mainViewTemplate_custom: wxQuickMain; protected onLoad() { // this.mainViewTemplate_custom = Common.createPrefab_custom(this.adMainPrefab, wxQuickMain, this.node); // this.mainViewTemplate_custom.node.zIndex = 100; // this.mainViewTemplate_custom.onListenerEventView_custom(handleFM_custom((event) => { // if (event == this.mainViewTemplate_custom.EventEnumView_custom.StartGame_custom) { // this.mainViewTemplate_custom.hideView_custom(); // this.toGame(); // } // }, this)); // this.mainViewTemplate_custom.showView_custom(); } protected toGame() { // GameMgr.getInstance_custom().onMainToGameScene_custom(); } protected start(): void { cc.director.loadScene("LoadScene"); } }