예제 #1
0
        public void Save(T data, string path = null)
        {
            var str = JsonUtility.ToJson(data);

            File.WriteAllText(path, Crypto.CryptoXOR(str));
        }
예제 #2
0
        public T Load(string path = null)
        {
            var str = File.ReadAllText(path);

            return(JsonUtility.FromJson <T>(Crypto.CryptoXOR(str)));
        }