Beispiel #1
0
    void ShowData()
    {
        if (Lab_Name != null && curData != null)
        {
            StartCoroutine(GTResouseManage.Instance().GetResFromAb("cardimg.unity3d", curData.Race + "_" + curData.ImgID,
                                                                   (Texture texture) =>
            {
                imgBK.texture = texture;
            }));
//            StartCoroutine(AddUiToCanvas(imgBK));

            Lab_Name.text = curData.CardName;
        }
    }
Beispiel #2
0
 IEnumerator loadAudioFromCache(string audioPath, string sortName, ClipHolder holder)
 {
     holder.clip = GTResouseManage.Instance().GetOneAudio(audioPath, sortName);
     yield return(holder);
 }