[add] Lobby 按鈕功能

This commit is contained in:
2022-05-08 20:36:56 +08:00
parent b644e0e0ab
commit d302a52d8d
105 changed files with 52578 additions and 3849 deletions

View File

@@ -0,0 +1,29 @@
import CSMessage from "../Message/CSMessage";
const { ccclass, property } = cc._decorator;
@ccclass
export class MainControl extends cc.Component {
//#region property
@property({ displayName: "訊息窗位置", type: cc.Node })
public MessageContent: cc.Node = null;
@property({ displayName: "MessageNormal", type: cc.Prefab })
public SourceMessage: cc.Prefab = null;
//#endregion
//#region 初始化
onLoad(): void {
// MainControl._instance = this;
this._initialEngine();
}
private _initialEngine(): void {
CSMessage.Initialize(this.SourceMessage, this.MessageContent);
}
//#endregion
}

View File

@@ -0,0 +1,9 @@
{
"ver": "1.0.8",
"uuid": "ec0e4b2c-5018-4f84-9062-70403d8383e1",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}