Beispiel #1
0
    public static GTResouseManage Instance()
    {
        if (_instance == null)
        {
            Transform MangerBase = GTUIManager.Instance().GetManagerBaseRoot();
            m_gameObject = new GameObject("GTResouseManage");
            m_gameObject.transform.parent = MangerBase;
            _instance = m_gameObject.AddComponent <GTResouseManage>();
//			DontDestroyOnLoad (m_gameObject);
        }
        return(_instance);
    }
Beispiel #2
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 #3
0
 IEnumerator loadAudioFromCache(string audioPath, string sortName, ClipHolder holder)
 {
     holder.clip = GTResouseManage.Instance().GetOneAudio(audioPath, sortName);
     yield return(holder);
 }