From 77080b3934f0d60cc91ac22f932a7ae37a38b26f Mon Sep 17 00:00:00 2001 From: hevinci Date: Sat, 19 Nov 2022 17:54:41 +0800 Subject: [PATCH] Update basic sample --- .../GameScript/Runtime/GameScene1.cs | 20 +++++++++---------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/Assets/YooAsset/Samples~/Basic Sample/GameScript/Runtime/GameScene1.cs b/Assets/YooAsset/Samples~/Basic Sample/GameScript/Runtime/GameScene1.cs index 335d9d1..e5abc04 100644 --- a/Assets/YooAsset/Samples~/Basic Sample/GameScript/Runtime/GameScene1.cs +++ b/Assets/YooAsset/Samples~/Basic Sample/GameScript/Runtime/GameScene1.cs @@ -22,8 +22,8 @@ public class GameScene1 : MonoBehaviour // 初始化窗口 InitWindow(); - // 异步加载背景音乐 - AsyncLoadMusic(); + // 加载背景音乐 + LoadMusic(); } void OnDestroy() { @@ -176,9 +176,8 @@ public class GameScene1 : MonoBehaviour var btn = CanvasRoot.transform.Find("load_rawfile/btn").GetComponent