From 15b3be708f4a06efaeeb5a67205b8551e60b4a54 Mon Sep 17 00:00:00 2001 From: small Date: Fri, 15 Oct 2021 18:14:25 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E4=B8=80bundle?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/scripts/framework/core/logic/Logic.ts | 3 --- .../scripts/framework/core/nodePool/NodePoolManager.ts | 2 +- assets/scripts/framework/core/ui/UIView.ts | 10 +--------- 3 files changed, 2 insertions(+), 13 deletions(-) diff --git a/assets/scripts/framework/core/logic/Logic.ts b/assets/scripts/framework/core/logic/Logic.ts index 7b42dcfb..b6bd8808 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 d6702441..cd80242c 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 82750678..170522c6 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; -- Gitee