using System.Collections; using System.Collections.Generic; using UnityEngine; public class Test : MonoBehaviour { [ContextMenu("test")] public void test() { DownlodeResp request = new DownlodeResp(); request.Request((data) => { Crypto cr = new Crypto(); Debug.Log(cr.Decompress(data.data)); Statics.version = data.version; }); } [ContextMenu("test2")] public void test2() { Crypto cr = new Crypto(); string testdd = cr.Compress("testdata"); Debug.Log(testdd); Debug.Log(cr.Decompress(testdd)); } }