示例#1
0
    /// <summary>
    /// 获取对应的数据
    /// </summary>
    /// <param name="id"></param>
    public override void setData(int id)
    {
        IList <MonsterVO> list = DataMgr.getInstance().Monster;

        for (int i = 0; i < list.Count; i++)
        {
            if (list[i].ID == id)
            {
                _monst = list[i];
            }
        }
    }
示例#2
0
    /// <summary>
    /// 获取对应的数据
    /// </summary>
    /// <param name="id"></param>
    public override void setData(int id)
    {
        IList<MonsterVO> list = DataMgr.getInstance().Monster;

        for (int i = 0; i < list.Count; i++)
        {
            if (list[i].ID == id)
            {
                _monst = list[i];
            }
        }
    }