少年修仙传客户端基础资源
leonard Wu
2018-08-09 a10eea6e4ce647061813519d5b0ea496f29495b9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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();
        }
    }
 
}