Ejemplo n.º 1
0
        public byte[] LoadStreamingAssetsDataByte(string name)
        {
            for (int i = 0; i < m_DirtyDataList.Count; i++)
            {
                if (m_DirtyDataList[i].Name == name)
                {
                    return(m_DirtyDataList[i].Data);
                }
            }

            return(C_Save.LoadByte(name, C_LocalPath.StreamingAssetsDataPath, c_Password));
        }
Ejemplo n.º 2
0
        //兼容老数据
        public string LoadData_Old(string name)
        {
            string path = Application.persistentDataPath + "/c_framework/normal/data/";

            byte[] data = C_Save.LoadByte(name, path, c_Password);

            if (data != null)
            {
                return(Encoding.UTF8.GetString(data));
            }

            return("");
        }