@cc-component/cc-core 1.3.1 → 1.3.3

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.
@@ -2,6 +2,7 @@
2
2
  import { Node, AudioSource, AudioClip, resources, director } from 'cc';
3
3
  import { ResourceManager } from './ResourceManager';
4
4
  import { BundleConfigName } from '../config/CommonEnum';
5
+ import { EDITOR } from 'cc/env';
5
6
  /**
6
7
  * @en
7
8
  * this is a sington class for audio play, can be easily called from anywhere in you project.
@@ -15,6 +16,7 @@ export class AudioUtil {
15
16
  private _audioSource2: AudioSource;
16
17
 
17
18
  constructor() {
19
+ if (EDITOR) return;
18
20
  //@en create a node as AudioUtil
19
21
  //@zh 创建一个节点作为 AudioUtil
20
22
  let AudioUtil = new Node();
package/index.ts CHANGED
@@ -12,6 +12,7 @@ export * from './assets/core/home/ProgessWindow';
12
12
  export * from './assets/core/home/BaseModuleConfig';
13
13
 
14
14
  //日志
15
+ export * from './assets/core/lib/ecs/ECS';
15
16
  export * from './assets/core/lib/logger/ELoggerLevel';
16
17
 
17
18
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cc-component/cc-core",
3
- "version": "1.3.1",
3
+ "version": "1.3.3",
4
4
  "engine": ">=3.8.6",
5
5
  "description": "系统组件添加常用扩展方法",
6
6
  "main": "index.ts",