/// <summary> /// 通过数据ID 确定具体条目 /// </summary> /// <param name="id"></param> public void setData(int id) { IList <BattleVO> list = DataMgr.getInstance().Battle; for (int i = 0; i < list.Count; ++i) { if (list[i].ID == id) { _battle = list[i]; } } }
/// <summary> /// 通过数据ID 确定具体条目 /// </summary> /// <param name="id"></param> public void setData(int id) { IList<BattleVO> list = DataMgr.getInstance().Battle; for (int i = 0; i < list.Count; ++i) { if (list[i].ID == id) { _battle = list[i]; } } }