@cc-component/cc-core 1.6.6 → 1.6.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -46,7 +46,7 @@ export class App {
46
46
  /**对象池 */
47
47
  static get pool(): EffectSingleCase { return this.instance._pool }
48
48
  /**资源管理 */
49
- static get res(): ResourceManager { return this.instance._res }
49
+ static get asset(): ResourceManager { return this.instance._asset }
50
50
 
51
51
  _gui: LayerUI;
52
52
  _http: HttpManager;
@@ -58,7 +58,7 @@ export class App {
58
58
  _sound: AudioUtil;
59
59
  _tools: Tools;
60
60
  _pool: EffectSingleCase;
61
- _res: ResourceManager;
61
+ _asset: ResourceManager;
62
62
 
63
63
  private static instance: App | null = null;
64
64
  public static get Ins(): App {
@@ -92,7 +92,7 @@ export class App {
92
92
  self._sound = new AudioUtil();
93
93
  self._tools = new Tools();
94
94
  self._pool = EffectSingleCase.instance;
95
- self._res = ResourceManager.instance;
95
+ self._asset = ResourceManager.instance;
96
96
 
97
97
  if (EDITOR) { return }//编辑器环境,不执行下面逻辑
98
98
  //Logger.setLevel(ELoggerLevel.Error);
@@ -41,8 +41,8 @@ declare global {
41
41
  const tools: Tools;
42
42
  /**对象池 */
43
43
  const pool: EffectSingleCase;
44
- /**资源管理 */
45
- const res: ResourceManager
44
+ /**资源加载 */
45
+ const asset: ResourceManager
46
46
 
47
47
  /**当前所在bundle名称 */
48
48
  const bundleName: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cc-component/cc-core",
3
- "version": "1.6.6",
3
+ "version": "1.6.7",
4
4
  "engine": ">=3.8.6",
5
5
  "description": "系统组件添加常用扩展方法",
6
6
  "main": "index.ts",