对大佬《Unity 手游逆向工程》文章的app加一点点优化
优化按钮的颜色、字体大小、图标位置(适配了模拟器和不同分辨率的手机)
HarkMgr
this.skin.button.fontSize = (this.skin.toggle.fontSize = (this.skin.textField.fontSize = (this.skin.label.fontSize = Screen.width / 25))); //设置字体大小
this.skin.toggle.normal.textColor = Color.white; //设置未选中文字颜色
contentOffset.x = (float)(Screen.width / 25); //偏移量
if ((int)((double)Screen.width / 0.5625) == Screen.height) //设置图标在屏幕的位置
{
GUILayout.BeginArea(new Rect((float)((double)Screen.width * 0.61), (float)((double)Screen.height * 0.1), (float)((double)Screen.width * 0.25), (float)Screen.height));
}
else
{
float num = (float)((double)Screen.width / 0.5625 * 0.1);
if ((double)Screen.height - (double)Screen.width / 0.5625 <= (double)Screen.width / 0.5625 * 0.15625 * 2.0)
{
num += (float)(((double)Screen.height - (double)Screen.width / 0.5625) / 2.0);
}
else
{
num += (float)((double)Screen.height - (double)Screen.width / 0.5625 - (double)Screen.width / 0.5625 * 0.15625);
}
GUILayout.BeginArea(new Rect((float)((double)Screen.width * 0.61), num, (float)((double)Screen.width * 0.25), (float)Screen.height));
}
原有功能优化
PVP3v3TeamArrangementPage //跳过巅峰竞技场战斗过程
public void OnClickBattleButton()
{
//code//
+ if (HackMgr.GameClear)
+ {
+ th