Commit 6d7c3150 authored by rockyl's avatar rockyl

发个版本

parent 9da58864
......@@ -56,7 +56,7 @@ export class StackContainer extends Node {
*/
pop(dispatch = true) {
let len = this.children.length;
if (len == 0) {
if (len <= 1) {
return false;
}
this.removeChildAt(len - 1);
......
......@@ -2,15 +2,16 @@
* Created by rockyl on 2019-11-08.
*/
import {Stage} from "../2d/display";
import {registerCustomModuleFromConfig, registerScripts, RENDERER_TYPE, setProcessMetaLibs, StageScaleMode} from "..";
import {GameStage} from "./game-warpper/index";
import {setGlobalContext} from "./behavior-runtime";
import {Stage} from "../2d/display/index";
import {GameStage, registerCustomModuleFromConfig} from "./game-warpper/index";
import {setGlobalContext, setProcessMetaLibs} from "./behavior-runtime/index";
import {globalLoader} from "../2d/loader/Loader";
import {Event} from "../2d/events/Event";
import builtinLoadingView from "./game-warpper/LoadingView";
import {queryParams} from "./web";
import {initAutoLayout} from "./game-warpper/auto-layout";
import {registerScripts} from "./decorators/scripts";
import {RENDERER_TYPE, StageScaleMode} from "../2d/const";
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