Exemplo n.º 1
0
    //---------------------------------------------------------------------
    /* functon */
    //---------------------------------------------------------------------


    // Get


    public Texture GetTexture(eRES_TEX eTexType)
    {
        if (false == m_TexList.ContainsKey(eTexType))
            return null;

        return m_TexList[eTexType];
    }
Exemplo n.º 2
0
    // Load

    public bool LoadTexture(eRES_TEX eTexType, string strPath)
    {
        if (true == GetTexture(eTexType))
        {
            Debug.LogWarning("pre Loaded. tex file path  : " + strPath);
            return false;
        }

        Texture texTemp = null;
        if (false == LoadTexture(ref texTemp, strPath))
            return false;

        m_TexList[eTexType] = texTemp;

        return true;
    }