超大量的更新 修复很多问题,gameplay特效初步
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections;
|
||||
|
||||
@@ -7,8 +7,8 @@ public class SongDataLibrary : MonoBehaviour
|
||||
public static SongDataLibrary Instance;
|
||||
private Dictionary<int, SongData> songDataDictionary = new Dictionary<int, SongData>();
|
||||
|
||||
// ָ������� "song_songIndex" Ŀ¼�µĸ������ļ�������
|
||||
// ���磺������� Assets/Resources/song_songIndex/FolderA �� FolderB������ Inspector ����д { "FolderA", "FolderB" }
|
||||
// Documentation text normalized.
|
||||
// Documentation text normalized.
|
||||
public string[] subfolderNames;
|
||||
|
||||
[Header("Song List")]
|
||||
@@ -111,6 +111,7 @@ public class SongDataLibrary : MonoBehaviour
|
||||
}
|
||||
if (!songDataDictionary.ContainsKey(data.songID))
|
||||
{
|
||||
data.LoadPersistent(); // 启动时从持久化存档恢复数据
|
||||
songDataDictionary.Add(data.songID, data);
|
||||
if (logLoadProgress)
|
||||
{
|
||||
@@ -146,6 +147,7 @@ public class SongDataLibrary : MonoBehaviour
|
||||
if (data == null) continue;
|
||||
if (!songDataDictionary.ContainsKey(data.songID))
|
||||
{
|
||||
data.LoadPersistent(); // 启动时从持久化存档恢复数据
|
||||
songDataDictionary.Add(data.songID, data);
|
||||
if (logLoadProgress)
|
||||
{
|
||||
@@ -170,7 +172,7 @@ public SongData GetSongDataByID(int songID)
|
||||
{
|
||||
return songDataDictionary[songID];
|
||||
}
|
||||
Debug.LogError("δ�ҵ� songID: " + songID);
|
||||
Debug.LogError("未找到 songID: " + songID);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user