diff --git a/assets/scripts/framework/core/logic/Logic.ts b/assets/scripts/framework/core/logic/Logic.ts index 7b42dcfb2906d9cc76d0cad15b14aa70a32d5e13..b6bd8808c28f1d8d1b7ddc409851729a4ee3a59d 100644 --- a/assets/scripts/framework/core/logic/Logic.ts +++ b/assets/scripts/framework/core/logic/Logic.ts @@ -3,9 +3,6 @@ import { Macro } from "../../defines/Macros"; export class Logic { /**@description logic bundle,管理器设置 */ static bundle = Macro.UNKNOWN; - /**@description logic bundle,管理器设置 */ - bundle: string = Macro.UNKNOWN; - protected gameView : GameView = null!; /**@description 重置游戏逻辑 */ diff --git a/assets/scripts/framework/core/nodePool/NodePoolManager.ts b/assets/scripts/framework/core/nodePool/NodePoolManager.ts index d6702441d5100df13c8b42d916d4012be42d1b8b..cd80242c17450b41c8d44245e4e4b4d851886bc1 100644 --- a/assets/scripts/framework/core/nodePool/NodePoolManager.ts +++ b/assets/scripts/framework/core/nodePool/NodePoolManager.ts @@ -89,7 +89,7 @@ export class NodePoolManager { * @description 创建对象池 * @param type 对象池类型 */ - createPool(type: string) : NodePool | null{ + createPool(type: string) : NodePool{ if (!this.pools.has(type)) { this.pools.set(type, new NodePool(type)); } diff --git a/assets/scripts/framework/core/ui/UIView.ts b/assets/scripts/framework/core/ui/UIView.ts index 8275067880215c014d18eca938d516156f6c5eff..170522c67379e5482a5ad32b997bd92838d728e1 100644 --- a/assets/scripts/framework/core/ui/UIView.ts +++ b/assets/scripts/framework/core/ui/UIView.ts @@ -10,6 +10,7 @@ const { ccclass, property } = _decorator; @ccclass export default class UIView extends EventComponent implements IFullScreenAdapt { + bundle = Macro.BUNDLE_RESOURCES onFullScreenAdapt(): void { } @@ -49,15 +50,6 @@ export default class UIView extends EventComponent implements IFullScreenAdapt { return this._className; } - private _bundle: BUNDLE_TYPE = null!; - /**指向当前View打开时的bundle */ - public set bundle(value) { - this._bundle = value; - } - public get bundle() { - return this._bundle; - } - /**@description 关闭界面动画 */ protected get closeAction() : ViewAction | null{ return null;