Beispiel #1
0
    public GameObject GetGameObject(eRES_GO eGoType)
    {
        if (false == m_GoList.ContainsKey(eGoType))
            return null;

        return m_GoList[eGoType];
    }
Beispiel #2
0
    public bool LoadGameObject(eRES_GO eGoType, string strPath)
    {
        if (null != GetGameObject(eGoType))
        {
            return true;
        }

        GameObject goTemp = null;
        if (false == LoadGameObject(ref goTemp, strPath))
            return false;
		
		if( true == m_GoList.ContainsKey(eGoType) )
		{
			m_GoList[eGoType] = goTemp;
		}
		else
		{
			m_GoList.Add( eGoType, goTemp);
		}

        return true;
    }