using System.Collections;
|
using System.Collections.Generic;
|
using UnityEngine;
|
using UnityEditor;
|
|
public class InGameDownTestWindow : EditorWindow
|
{
|
|
static InGameDownTestWindow window;
|
|
|
[MenuItem("程序/分包下载测试")]
|
public static void Open()
|
{
|
window = GetWindow(typeof(InGameDownTestWindow), false, "分包下载测试") as InGameDownTestWindow;
|
window.Show();
|
window.autoRepaintOnSceneChange = true;
|
}
|
|
private void OnGUI()
|
{
|
EditorGUILayout.BeginHorizontal();
|
InGameDownTestUtility.enable = EditorGUILayout.Toggle("开启测试", InGameDownTestUtility.enable);
|
|
EditorGUILayout.Space();
|
|
InGameDownTestUtility.isWifi = EditorGUILayout.Toggle("Wifi环境", InGameDownTestUtility.isWifi);
|
EditorGUILayout.EndHorizontal();
|
|
EditorGUILayout.Space();
|
if (GUILayout.Button("清除已下载的资源"))
|
{
|
InGameDownTestUtility.ClearAssets();
|
}
|
}
|
|
}
|