fix compile error on Unity 2018

This commit is contained in:
TORISOUP 2018-04-17 02:17:13 +09:00
parent de15a56e03
commit 25899b75f6

View File

@ -3,6 +3,9 @@ using System.Linq;
using System.Collections.Generic;
using System.IO;
using UnityEditor;
#if UNITY_2018_1_OR_NEWER
using UnityEditor.Build.Reporting;
#endif
using UnityEngine;
@ -77,10 +80,11 @@ namespace VRM
BuildTarget.StandaloneWindows,
BuildOptions.None
);
if (!string.IsNullOrEmpty(build))
{
return;
}
#if UNITY_2018_1_OR_NEWER
var iSuccess = build.summary.result != BuildResult.Succeeded;
#else
var iSuccess = !string.IsNullOrEmpty(build);
#endif
var path = GetPath(PREFIX);
if (File.Exists(path))