[Unity] Fix for Unity UWP/Windows Phone

https://github.com/EsotericSoftware/spine-runtimes/issues/495
This commit is contained in:
John 2015-12-30 14:59:23 +08:00
parent 81eb9c49b4
commit 727c242e6f

View File

@ -45,7 +45,7 @@ namespace Spine {
List<AtlasRegion> regions = new List<AtlasRegion>();
TextureLoader textureLoader;
#if !(UNITY_5 || UNITY_4 || UNITY_3) // Code inside this is not used by Unity and breaks when building for Unity-UWP
#if !(UNITY_5 || UNITY_4 || UNITY_WSA || UNITY_WP8 || UNITY_WP8_1) // !UNITY
#if WINDOWS_STOREAPP
private async Task ReadFile(string path, TextureLoader textureLoader) {
var folder = Windows.ApplicationModel.Package.Current.InstalledLocation;