Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Schwarzer committed Nov 23, 2018
1 parent 0d18dee commit d11369d
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 10 deletions.
18 changes: 10 additions & 8 deletions Assets/Scripts/LytCoop/Submission/LimLayestaSubmissionLevel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ IEnumerator UploadCoroutine()
"Layesta File|*.layesta"
#endif
, null);
if (path == null) yield break;
bool validate = LimLayestaReader.Validate(path);
if (!validate)
{
Expand Down Expand Up @@ -239,6 +240,14 @@ IEnumerator UploadCoroutine()
}
IEnumerator DownloadCoroutine()
{
string path = WindowsDialogUtility.SaveFileDialog(LimLanguageManager.TextDict["Layesta_Submission_Save"],
#if UNITY_EDITOR
"layesta"
#else
"Layesta File|*.layesta"
#endif
, null);
if (path == null) yield break;
UnityWebRequest web = new UnityWebRequest
{
downloadHandler = new DownloadHandlerBuffer(),
Expand All @@ -264,14 +273,7 @@ IEnumerator DownloadCoroutine()
MessageBoxManager.Instance.ShowMessage(((ErrorCode)response["ErrorCode"].Value<int>()).ToString());
yield break;
}
string url = response["Uri"].Value<string>();
string path = WindowsDialogUtility.SaveFileDialog(LimLanguageManager.TextDict["Layesta_Submission_Save"],
#if UNITY_EDITOR
"layesta"
#else
"Layesta File|*.layesta"
#endif
, null);
string url = response["Uri"].Value<string>();
web = new UnityWebRequest
{
downloadHandler = new DownloadHandlerFile(path),
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
08381533f3e384c14b6a42bd061dc4a69e6f5b16
1e5faf0770d396b8fa279e0263df110328224b0b
Binary file modified obj/Debug/Assembly-CSharp-Editor.csprojAssemblyReference.cache
Binary file not shown.
2 changes: 1 addition & 1 deletion obj/Debug/Assembly-CSharp.csproj.CoreCompileInputs.cache
Original file line number Diff line number Diff line change
@@ -1 +1 @@
179b01988f55c64a2298ed613372106571308a06
933866afdd14c75d8f83528a4a2e961de4821c0f
Binary file modified obj/Debug/Assembly-CSharp.csprojAssemblyReference.cache
Binary file not shown.
Binary file modified obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
Binary file not shown.

0 comments on commit d11369d

Please sign in to comment.