public void ScenePartData(chapter_info chapterInfoData) { if (chapterInfoData == null) { return; } int count = chapterInfoData.sprite.Count; for (int i = 0; i < count; i++) { sprite_info spriteInfoData = GameDataMgr.spriteInfoDatabin.GetDataByKey(chapterInfoData.sprite[i]); if (spriteInfoData == null) { continue; } string path = spriteInfoData.path + spriteInfoData.name; if (m_scenePartInfos.ContainsKey(path)) { m_scenePartInfos[path]++; } else { m_scenePartInfos.Add(path, 1); } } m_resCount++; }
// Start is called before the first frame update void Start() { chapter_info info = TableResMgr.GetInstance().GetRecordKey <chapter_info>(TableResMgr.IdxHint, 2); if (info != null) { Debug.Log(info.name); } }