/* protected - Override & Unity API */ protected override void OnMakeSingleton() { base.OnMakeSingleton(); SCManagerParserJson pManagerParser = SCManagerParserJson.DoMakeInstance(null, const_strResourcesJsonDataPath, EResourcePath.Resources); pManagerParser.DoReadJson_And_InitEnumerator(const_strResourcesFileName, ref _mapDataTable_Dialogue); }
protected override void OnAwake() { base.OnAwake(); Dictionary <EPropTest, SDataProp> _mapData_Prop = new Dictionary <EPropTest, SDataProp>(); SCManagerParserJson pParser = SCManagerParserJson.DoMakeInstance(this, SCManagerParserJson.const_strFolderName, EResourcePath.Resources); pParser.DoReadJson_And_InitEnumerator("인게임오브젝트_테스트", ref _mapData_Prop); var listTest = _mapData_Prop.ToList(); for (int i = 0; i < listTest.Count; i++) { Debug.Log(string.Format("Key : {0} Value ( i등장확률 : {1} i최대드랍골드 : {2} )", listTest[i].Key, listTest[i].Value.i등장확률, listTest[i].Value.i최대드랍골드)); } }