Exemplo n.º 1
0
    private string GetSourceModelPathByType(SourceInfo.SourceType type)
    {
        string modelPath = string.Empty;

        if (GlobalConfig.ModelToSourceType.ContainsKey(type.ToString()))
        {
            modelPath = GlobalConfig.ModelToSourceType[type.ToString()];
            //Debug.Log( "GetSourceModelPathByType(), " + modelPath );
        }
        else
        {
            Debug.LogError("not have the config of source model: " + type.ToString());
        }
        return(modelPath);
    }