mirror of
https://github.com/tengge1/ShadowEditor.git
synced 2026-01-25 15:08:11 +00:00
清理Application。
This commit is contained in:
parent
5748be5044
commit
e6b75439f2
@ -66,16 +66,9 @@ function Application(container, options) {
|
||||
|
||||
// 物理引擎
|
||||
this.physics = new Physics(params);
|
||||
|
||||
this.running = false;
|
||||
|
||||
// 是否从文件中加载场景,从文件中加载场景的url格式是index.html#file=xxx
|
||||
this.isLoadingFromHash = false;
|
||||
}
|
||||
|
||||
Application.prototype.start = function () {
|
||||
this.running = true;
|
||||
|
||||
// 启动事件 - 事件要在ui创建完成后启动
|
||||
this.event.start();
|
||||
|
||||
@ -89,8 +82,6 @@ Application.prototype.start = function () {
|
||||
};
|
||||
|
||||
Application.prototype.stop = function () {
|
||||
this.running = false;
|
||||
|
||||
this.call('appStop', this);
|
||||
this.call('appStoped', this);
|
||||
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
*/
|
||||
function Options(options) {
|
||||
options = options || {};
|
||||
this.server = options.server || location.origin;
|
||||
this.server = options.server || location.origin; // 服务端地址
|
||||
}
|
||||
|
||||
export default Options;
|
||||
Loading…
x
Reference in New Issue
Block a user