//--------------------------------------------------------------------- /* functon */ //--------------------------------------------------------------------- // Get public Texture GetTexture(eRES_TEX eTexType) { if (false == m_TexList.ContainsKey(eTexType)) return null; return m_TexList[eTexType]; }
// 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; }