void LoadCharactorInfo() { UnityEngine.TextAsset s = Resources.Load("Charactors/CharactorInfo") as TextAsset; string tmp = s.text; m_CharactorAll = JsonMapper.ToObject <CharactorAll> (tmp); }
void ShowAllCharactor(CharactorAll ch) { if (m_CharactorAll == null) { Debug.Log(1); return; } foreach (CharactorInfo info in ch.charactor_all) { Debug.Log(info.to_str()); } }