コード例 #1
0
 void androidPlatformLoader()
 {
     ZRAndroidFilePicker.PickFile(
         //ZRFilePicker.Creat (
         (filepath) => {
         TrackMap ZRTrackFile;
         if (!string.IsNullOrEmpty(filepath))
         {
             string json = File.ReadAllText(filepath);
             try{
                 ZRTrackFile = TrackMap.FromJson(json);
             }catch (Exception e) {
                 editor.debugLog.LogWarning(ExceptionList.openFileError.Value);
                 return;
             }
             manager.cacheFilePath = filepath;
             editor.getTrackMap    = ZRTrackFile;
             //TODO:Load its AudioClip and Background Image
             StartCoroutine(LoadContent(editor.getTrackMap.header));
         }
         else
         {
             editor.debugLog.LogWarning(ExceptionList.openFileError.Value);
         }
     });
 }
コード例 #2
0
 void androidPlatformLoader()
 {
     ZRAndroidFilePicker.PickImage((filepath) => {
         //ZRFilePicker.Creat((filepath)=>{
         if (!string.IsNullOrEmpty(filepath))
         {
             StartCoroutine(this.LoadImage(filepath));
         }
         else
         {
             editor.debugLog.LogWarning(ExceptionList.openFileError.Value);
         }
     });
 }