Beispiel #1
0
        void Start()
        {
            ConfInitPool.InitConf();

            SceneTab tab = ConfPool.GetTab <SceneTab>(1002);

            Debug.LogError(tab.Des);
        }
Beispiel #2
0
    public override void OnRow(ITabRow row)
    {
        SceneTab tab = new SceneTab();

        tab.Id   = row.GetInt((int)Cols.ID);
        tab.Name = row.GetString((int)Cols.NAME);
        tab.Des  = row.GetString((int)Cols.DES);

        if (!ConfPool.ContainsKey(tab.Id.ToString()))
        {
            ConfPool.Add(tab.Id.ToString(), tab);
        }
    }