Ejemplo n.º 1
0
        /// <summary>
        /// 通过[ID]二分快速查表
        /// </summary>
        /// <param name="ID">ID</param>
        /// <returns></returns>
        public static RankDataBase Query(this List <RankDataBase> sorted, uint ID)
        {
            var key = new RankDataBase()
            {
                ID = ID
            };
            var comparer = new Comparer1();
            var index    = sorted.BinarySearch(key, comparer);

            return(index >= 0 ? sorted[index] : default(RankDataBase));
        }
Ejemplo n.º 2
0
    void ShowTitle()
    {
        RankDataBase table = GameTableManager.Instance.GetTableItem <RankDataBase>(rankID);

        m_label_Label_1.text = table.line1;
        m_label_Label_2.text = table.line2;
        m_label_Label_3.text = table.line3;
        m_label_Label_4.text = table.line4;
        m_label_Label_5.text = table.line5;
        m_label_power_label.transform.Find("Label").GetComponent <UILabel>().text = "我的" + table.line5 + ":";
    }