Ejemplo n.º 1
0
 private void OnGUI()
 {
     if (GUILayout.Button("", GUILayout.Height(50), GUILayout.Width(100)))
     {
         ResourceLoad.LoadAB <TextAsset>("gloab.lua.unity3d", (text) =>
         {
             Log.LogColor("加载文件" + text.ToString(), "red");
             luaenv.DoString(text.text);
         });
     }
     if (GUILayout.Button("", GUILayout.Height(50), GUILayout.Width(100)))
     {
         ResourceLoad.LoadAB <TextAsset>("assetbundload.lua.unity3d", (text) =>
         {
             Log.LogColor("加载文件" + text.ToString(), "red");
             luaenv.DoString(text.text);
         });
     }
 }
Ejemplo n.º 2
0
    private void OnGUI()
    {
        if (GUILayout.Button("", GUILayout.Height(50), GUILayout.Width(100)))
        {
            ResourceLoad.LoadAB <TextAsset>("load.lua.unity3d", (text) =>
            {
                Log.LogColor(text.ToString());
            });
        }
        if (GUILayout.Button("", GUILayout.Height(50), GUILayout.Width(100)))
        {
            //ABBundle[] list = LitJson.JsonMapper.ToObject<ABBundle[]>(File.ReadAllText("Assets/AssetBundle/ABlua/config.md"));
            //Log.LogColor("数量 : "+ list.Length);
            //Log.LogColor(list[0].md5);
            //GetKey();

            //byte[] byts=  Encryption(date);
            //File.WriteAllBytes("byt.byte", byts);
            Log.LogColor(Decrypt(File.ReadAllBytes("byt.byte")));
        }

        Log.LogColor("测试分支推送");
    }