Commit 96ac4767 authored by Unicorn369's avatar Unicorn369

fix

parent 2e8f2762
......@@ -95,9 +95,9 @@ public class Menu : WindowServantSP
Program.I().quit();
Program.Running = false;
TcpHelper.SaveRecord();
#if !UNITY_EDITOR || UNITY_ANDROID || UNITY_IPHONE // IL2CPP 使用此方法才能退出
#if !UNITY_EDITOR && (UNITY_ANDROID || UNITY_IPHONE) // IL2CPP 使用此方法才能退出
Application.Quit();
#elif
#else
Process.GetCurrentProcess().Kill();
#endif
}
......@@ -134,10 +134,10 @@ public class Menu : WindowServantSP
void onClickJoinQQ()
{
#if !UNITY_EDITOR || UNITY_ANDROID //Android
#if !UNITY_EDITOR && UNITY_ANDROID //Android
AndroidJavaObject jo = new AndroidJavaObject("cn.unicorn369.library.API");
jo.Call("doJoinQQGroup", "UHm3h3hSrmgp-iYqMiZcc2zO5J1Q8OyW");
#elif
#else
Application.OpenURL("https://jq.qq.com/?_wv=1027&k=50MZVQA");
#endif
}
......
......@@ -9,6 +9,7 @@ public class WindowServant2D : Servant
UIHelper.clearITWeen(gameObject);
iTween.MoveTo(gameObject, Program.camera_main_2d.ScreenToWorldPoint(new Vector3(Screen.width / 2, Screen.height * 1.5f, 0)), 0.6f);
}
resize();
}
public override void applyShowArrangement()
......@@ -18,6 +19,23 @@ public class WindowServant2D : Servant
UIHelper.clearITWeen(gameObject);
iTween.MoveTo(gameObject, Program.camera_main_2d.ScreenToWorldPoint(new Vector3(Screen.width / 2, Screen.height / 2, 0)), 0.6f);
}
resize();
}
void resize()
{
if (gameObject != null)
{
if (Program.I().setting.setting.resize.value)
{
float f = Screen.height / 700f;
gameObject.transform.localScale = new Vector3(f, f, f);
}
else
{
gameObject.transform.localScale = new Vector3(1, 1, 1);
}
}
}
public override void hide()
......
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