少年修仙传客户端代码仓库
leonard Wu
2018-08-02 a38909a99dd4108c110611a3575122fe77915a99
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
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System.IO;
using System;
 
public class InGameDownTestUtility
{
 
    public static bool enable {
        get { return LocalSave.GetBool("InGameDownLoadTestEanble", false); }
        set { LocalSave.SetBool("InGameDownLoadTestEanble", value); }
    }
 
    public static bool isWifi {
        get { return LocalSave.GetBool("InGameDownLoadWifi", true); }
        set { LocalSave.SetBool("InGameDownLoadWifi", value); }
    }
 
    public static void ClearAssets()
    {
        Directory.Delete(Application.persistentDataPath, true);
        LocalSave.DeleteKey("HasDownLoadFullAsset");
    }
}