[]UI编辑发布后运行lose skin
import WebGL = Laya.WebGL;
import Begin = ui.testUI;
import Handler = Laya.Handler;
import Loader = Laya.Loader;
// 程序入口
class GameMain{
private begin: Begin;
constructor()
{
Laya.init(600,400, WebGL);
Laya.stage.bgColor = "#000000";
Laya.loader.load("comp/button.png", Handler.create(this, this.onLoaded));
}
private onLoaded(): void {
this.begin = new Begin();
Laya.stage.addChild(this.begin);
}
}
new GameMain();
import Begin = ui.testUI;
import Handler = Laya.Handler;
import Loader = Laya.Loader;
// 程序入口
class GameMain{
private begin: Begin;
constructor()
{
Laya.init(600,400, WebGL);
Laya.stage.bgColor = "#000000";
Laya.loader.load("comp/button.png", Handler.create(this, this.onLoaded));
}
private onLoaded(): void {
this.begin = new Begin();
Laya.stage.addChild(this.begin);
}
}
new GameMain();
没有找到相关结果
已邀请:
要回复问题请先登录
1 个回复
李吱儿哇
赞同来自: