From 38afc6f2fc317ac74b6eaeba5788bacf6239f453 Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期三, 14 十一月 2018 17:13:00 +0800
Subject: [PATCH] 4792 【1.2】原随包的配置全部支持热更新。
---
System/Sound/SoundPlayer.cs | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/System/Sound/SoundPlayer.cs b/System/Sound/SoundPlayer.cs
index 3872535..57a3355 100644
--- a/System/Sound/SoundPlayer.cs
+++ b/System/Sound/SoundPlayer.cs
@@ -45,7 +45,7 @@
public static void CreateSoundPlayer()
{
- var gameObject = GameObject.Instantiate(Resources.Load<GameObject>("Prefabs/SoundPlayer"));
+ var gameObject = GameObject.Instantiate(BuiltInLoader.LoadPrefab("SoundPlayer"));
Instance = gameObject.GetComponent<SoundPlayer>();
Instance.name = "SoundPlayer";
Instance.gameObject.SetActive(true);
--
Gitblit v1.8.0