mirror of
https://gitee.com/dgflash/oops-framework.git
synced 2026-06-03 19:09:36 +08:00
兼容最新版本框架
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
"gui": [
|
||||
{
|
||||
"name": "LayerGame",
|
||||
"type": "Node"
|
||||
"type": "Game"
|
||||
},
|
||||
{
|
||||
"name": "LayerUI",
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
*/
|
||||
|
||||
import { Node, tween, Vec3 } from "cc";
|
||||
import { UICallbacks } from "../../../../../extensions/oops-plugin-framework/assets/core/gui/layer/Defines";
|
||||
import { UICallbacks } from "db://oops-framework/core/gui/layer/LayerUIElement";
|
||||
import { oops } from "../../../../../extensions/oops-plugin-framework/assets/core/Oops";
|
||||
import { UIID } from "../config/GameUIConfig";
|
||||
|
||||
|
||||
@@ -175,8 +175,8 @@ export class Demo extends GameComponent {
|
||||
|
||||
/** 背景音乐 */
|
||||
private btn_audio_open1(event: EventTouch, data: any) {
|
||||
oops.audio.volumeMusic = 0.5;
|
||||
oops.audio.playMusicLoop("audios/nocturne");
|
||||
oops.audio.music.volume = 0.5;
|
||||
oops.audio.music.loadAndPlay("audios/nocturne");
|
||||
}
|
||||
|
||||
/** 背景音效 */
|
||||
|
||||
Reference in New Issue
Block a user