public void Clear() { if (HeroInfo != null) { for (int i = 0; i < HeroInfo.Count; ++i) { HeroInfo[i].Clear(); ReturnHeroInfoElement(HeroInfo[i]); } HeroInfo.Clear(); } if (NpcInfo != null) { for (int i = 0; i < NpcInfo.Count; ++i) { NpcInfo[i].Clear(); ReturnNpcInfoElement(NpcInfo[i]); } NpcInfo.Clear(); } FullViewFlag = 0; }