Commit 96c8ecb7 authored by Unicorn369's avatar Unicorn369

update

parent bad48231
fileFormatVersion: 2
guid: aef8232f55cbd1047a2deb17e26e6954
timeCreated: 1552877172
licenseType: Free
PluginImporter:
serializedVersion: 2
iconMap: {}
executionOrder: {}
isPreloaded: 0
isOverridable: 0
platformData:
data:
first:
Android: Android
second:
enabled: 1
settings:
CPU: ARMv7
data:
first:
Any:
second:
enabled: 0
settings: {}
data:
first:
Editor: Editor
second:
enabled: 0
settings:
DefaultValueInitialized: true
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: eff93f730b327d447a926733335b0170
timeCreated: 1552877172
licenseType: Free
PluginImporter:
serializedVersion: 2
iconMap: {}
executionOrder: {}
isPreloaded: 0
isOverridable: 0
platformData:
data:
first:
Android: Android
second:
enabled: 1
settings:
CPU: x86
data:
first:
Any:
second:
enabled: 0
settings: {}
data:
first:
Editor: Editor
second:
enabled: 0
settings:
DefaultValueInitialized: true
userData:
assetBundleName:
assetBundleVariant:
......@@ -278,9 +278,9 @@ public class Program : MonoBehaviour
public static string ANDROID_GAME_PATH = "/storage/emulated/0/ygopro2/";
#if UNITY_EDITOR || UNITY_STANDALONE_WIN //编译器、Windows
public static bool ANDROID_API_M = true;
public static bool ANDROID_API_N = true;
#elif UNITY_ANDROID || UNITY_IPHONE //Mobile Platform
public static bool ANDROID_API_M = false;
public static bool ANDROID_API_N = false;
#endif
void initialize()
......@@ -438,10 +438,10 @@ public class Program : MonoBehaviour
/**
* 使用Termux编译生成的:libgdiplus.so (https://github.com/Unicorn369/libgdiplus-Android)
* 经测试,只有Android 6.0以上才能正常使用。为了让Android 6.0以下的也能凑合使用立绘效果,需做判断
* 部分6.0机型可能无法正常使用,如需支持需要额外判断型号:华为、OPPO、VIVO、乐视等机型
* 由于部分国产手机系统不够原生,就算是Android 6.0也用不起,只好抛弃能正常使用的手机,改为只支持:Android 7.+
*
* public boolean APIVersion() {
* if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
* if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
* return true;
* } else {
* return false;
......@@ -451,9 +451,9 @@ public class Program : MonoBehaviour
bool API_SUPPORT = jo.Call<bool>("APIVersion");
if (API_SUPPORT == true) {
ANDROID_API_M = true;
ANDROID_API_N = true;
} else {
ANDROID_API_M = false;
ANDROID_API_N = false;
}
#endif
});
......
......@@ -261,7 +261,7 @@ public class GameTextureManager
if (File.Exists("picture/closeup/" + pic.code.ToString() + ".png"))
{
string path = "picture/closeup/" + pic.code.ToString() + ".png";
if (Program.ANDROID_API_M) {
if (Program.ANDROID_API_N) {
BitmapHelper bitmap = new BitmapHelper(path);
int left;
int right;
......@@ -587,7 +587,7 @@ public class GameTextureManager
string path = "picture/closeup/" + pic.code.ToString() + ".png";
if (!File.Exists(path))
{
if (Program.ANDROID_API_M) {
if (Program.ANDROID_API_N) {
path = "picture/card/" + pic.code.ToString() + ".png";
if (!File.Exists(path))
{
......@@ -669,7 +669,7 @@ public class GameTextureManager
{
try
{
if (Program.ANDROID_API_M) {
if (Program.ANDROID_API_N) {
BitmapHelper bitmap = new BitmapHelper(path);
int left;
int right;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment