Esempio n. 1
0
 /// <summary>
 /// 加载记录
 /// </summary>
 /// <param name="_loadData"></param>
 public void LoadData(ListUIData _loadData)
 {
     if (_loadData == null || listButtonRoomDatas == null)
     {
         return;
     }
     for (int i = 0; i < listButtonRoomDatas.Length; i++)
     {
         if (listButtonRoomDatas[i] != null)
         {
             listButtonRoomDatas[i].LoadData(_loadData.listButtonRoomDatas[i]);
         }
     }
 }
Esempio n. 2
0
    private void Awake()
    {
        if (musicData == null)
        {
            musicData = Resources.Load <MusicData>("MusicData/MusicData");
        }
        //ResMgr.GetInstance().loadAsync<MusicData>("ListData/ListUIData", (m)=> { musicData = m; });

        if (sceneData == null)
        {
            sceneData = Resources.Load <ListUIData>("ListData/ListUIData");
        }

        if (partData == null)
        {
            partData = Resources.Load <PartUIData>("PartData/PartData");
        }
    }