【更新界面】修改背景图的加载位置

dev_chengFeng
gaoxin 2021-06-04 21:11:40 +08:00
parent 770b4e57a5
commit 70d78be2f6
1 changed files with 3 additions and 3 deletions

View File

@ -44,10 +44,10 @@ namespace GameLogic
{
if (AppConst.bundleMode)
{
string path = AppConst.PersistentDataPath + "lz4/bg/loading/" + updatePanelBg + ".unity3d";
string path = AppConst.PersistentDataPath + "lz4/bgnc/" + updatePanelBg + ".unity3d";
if (!File.Exists(path))
{
path = AppConst.StreamPath + "lz4/bg/loading/" + updatePanelBg + ".unity3d";
path = AppConst.StreamPath + "lz4/bgnc/" + updatePanelBg + ".unity3d";
}
bundle = AssetBundle.LoadFromFile(path, 0, GameLogic.AppConst.EncyptBytesLength);
if (bundle == null)
@ -60,7 +60,7 @@ namespace GameLogic
else
{
#if UNITY_EDITOR
string path = AppConst.GameResPath + "/BG/Loading/" + updatePanelBg + ".jpg";
string path = AppConst.GameResPath + "/BGNC/" + updatePanelBg + ".jpg";
Sprite sp = UnityEditor.AssetDatabase.LoadAssetAtPath<Sprite>(path);
this.transform.Find("Canvas/LoadingScreen/bg1").GetComponent<Image>().sprite = sp;
#endif