有人可以帮我理解我在以下代码中做错了什么,在Unity standalone
模式下,我的预期xml
文件没有被读入吗?
#if UNITY_EDITOR
if( Directory.Exists( ApplicationManager.ExperimentPath ) )
{
texts = Directory.GetFiles( ApplicationManager.ExperimentPath, "*.xml" );
}
else
{
texts = new string[0];
}
#elif UNITY_STANDALONE
if( Directory.Exists( Application.streamingAssetsPath ) )
{
texts = Directory.GetFiles( Application.streamingAssetsPath, "*.xml" );
}
else
{
texts = new string[0];
}
#else
Debug.Log("Platform not supported yet!");
#endif
包含我的程序数据的xml
文件放在build_Data
目录中......