//坑爹的s[0]为""
string str = "3,path:Audio/1";
if (str != null && str != ""){
string[] s = Regex.Split(str,m_pattern);
foreach (string item in s)
{
Debug.Log("item"+item);
}
pathDic.Add(s[0], s[1]);
}
Debug:
item
item3
itemAudio/1
//坑爹的s[0]为""
string str = "3,path:Audio/1";
if (str != null && str != "")}
Debug:
item
item3
itemAudio/1