thewar_client/Client/Assets/1_Script/Test.cs

41 lines
914 B
C#

using Newtonsoft.Json;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Test : MonoBehaviour
{
public List<int> testlist = new List<int>();
[ContextMenu("test")]
public void test()
{
//Debug.Log(JsonConvert.SerializeObject(testlist));
//DownlodeResp request = new DownlodeResp();
//request.Request((data) =>
//{
// Crypto cr = new Crypto();
// Debug.Log(cr.Decompress(data.data));
// Statics.version = data.version;
//});
int test = 1;
int wave = test / 10;
int pos = test % 10;
Debug.Log(wave);
Debug.Log(pos);
}
[ContextMenu("test2")]
public void test2()
{
Crypto cr = new Crypto();
string testdd = cr.Compress("testdata");
Debug.Log(testdd);
Debug.Log(cr.Decompress(testdd));
}
}