mirror of
https://github.com/wechat-miniprogram/minigame-tuanjie-transform-sdk.git
synced 2026-04-22 01:35:56 +08:00
40 lines
996 B
C#
40 lines
996 B
C#
using UnityEngine;
|
|
using UnityEditor;
|
|
|
|
namespace WeChatWASM
|
|
{
|
|
|
|
public class WXPCHPWin : EditorWindow
|
|
{
|
|
[MenuItem("微信小游戏 / 转换PC高性能模式", false, 3)]
|
|
public static void Open()
|
|
{
|
|
var win = GetWindow(typeof(WXPCHPWin), false, "PC高性能模式转换工具");
|
|
win.minSize = new Vector2(350, 200);
|
|
win.position = new Rect(150, 150, 500, 300);
|
|
win.Show();
|
|
}
|
|
|
|
public void OnFocus()
|
|
{
|
|
WXPCSettingsHelperInterface.helper.OnFocus();
|
|
}
|
|
|
|
public void OnLostFocus()
|
|
{
|
|
WXPCSettingsHelperInterface.helper.OnLostFocus();
|
|
}
|
|
|
|
public void OnDisable()
|
|
{
|
|
WXPCSettingsHelperInterface.helper.OnDisable();
|
|
}
|
|
|
|
public void OnGUI()
|
|
{
|
|
WXPCSettingsHelperInterface.helper.OnSettingsGUI(this);
|
|
WXPCSettingsHelperInterface.helper.OnBuildButtonGUI(this);
|
|
}
|
|
}
|
|
}
|