Ejemplo n.º 1
0
 /// <summary>
 /// 从本地读取文件内容并传递给GameObject
 /// </summary>
 /// <param name="gameObjectName"></param>
 /// <param name="onLoadedCallback"></param>
 public void ReadFileFromLocal(string gameObjectName, string onLoadedCallback)
 {
     if (Wapper != null)
     {
         Wapper.ReadFileFromLocal(gameObjectName, onLoadedCallback);
     }
 }
        /// <summary>
        /// 将数据加载到内存中
        /// </summary>
        public void LoadStorageData()
        {
#if Local_Mode
#if UNITY_STANDALONE_WIN
            ReadStorageFileCallback();
#endif
#if UNITY_WEBGL
            _webApiService.ReadFileFromLocal("StorageSystem", "ReadStorageFileCallback");
#endif
#endif
#if Lab_Mode
            JObject jObject = labInterSystem.SetRequestInfo();
            labInterSystem.LabRequest(LabInterType.downloadReplay, jObject.ToString());
            labInterSystem.RequestCallBack = ReadStorageFileCallback;
#endif
        }