Commit 6d7c3150 authored by rockyl's avatar rockyl

发个版本

parent 9da58864
...@@ -56,7 +56,7 @@ export class StackContainer extends Node { ...@@ -56,7 +56,7 @@ export class StackContainer extends Node {
*/ */
pop(dispatch = true) { pop(dispatch = true) {
let len = this.children.length; let len = this.children.length;
if (len == 0) { if (len <= 1) {
return false; return false;
} }
this.removeChildAt(len - 1); this.removeChildAt(len - 1);
......
...@@ -2,15 +2,16 @@ ...@@ -2,15 +2,16 @@
* Created by rockyl on 2019-11-08. * Created by rockyl on 2019-11-08.
*/ */
import {Stage} from "../2d/display"; import {Stage} from "../2d/display/index";
import {registerCustomModuleFromConfig, registerScripts, RENDERER_TYPE, setProcessMetaLibs, StageScaleMode} from ".."; import {GameStage, registerCustomModuleFromConfig} from "./game-warpper/index";
import {GameStage} from "./game-warpper/index"; import {setGlobalContext, setProcessMetaLibs} from "./behavior-runtime/index";
import {setGlobalContext} from "./behavior-runtime";
import {globalLoader} from "../2d/loader/Loader"; import {globalLoader} from "../2d/loader/Loader";
import {Event} from "../2d/events/Event"; import {Event} from "../2d/events/Event";
import builtinLoadingView from "./game-warpper/LoadingView"; import builtinLoadingView from "./game-warpper/LoadingView";
import {queryParams} from "./web"; import {queryParams} from "./web";
import {initAutoLayout} from "./game-warpper/auto-layout"; import {initAutoLayout} from "./game-warpper/auto-layout";
import {registerScripts} from "./decorators/scripts";
import {RENDERER_TYPE, StageScaleMode} from "../2d/const";
export let gameStage: GameStage; export let gameStage: GameStage;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment