// Use this for initialization
void Start ()
{
string path="";
if(Application.platform==RuntimePlatform.Android)
{
path=Application.persistentDataPath;
}
else if(Application.platform==RuntimePlatform.WindowsPlayer)
{
path=Application.dataPath;
}
else if(Application.platform==RuntimePlatform.WindowsEditor)
{
path=Application.dataPath;
}
string configip=LoadFile(path,"test.txt");
if(configip!="error")
{
gameObject.GetComponent<
Unity3d读写文件操作
最新推荐文章于 2025-05-28 14:30:44 发布