12345678910111213141516171819202122232425262728293031 |
- using System;
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public static class UserProperty
- {
- // Start is called before the first frame update
- public static int userId = 1;
- public static string name = "任天堂";
- public static int coin = 1005;
- public static DateTime tokenExpireTime;
- //public static Dictionary<string, int> foods = new();
- //public static Dictionary<string, int> toys = new();
- //public static Dictionary<string, int> others = new();
- public static Dictionary<string, List<ItemStock>> itemStocks = new();
- }
- public class ItemStock
- {
- public string id;
- public int qty;
- public ItemStock(string id, int qty)
- {
- this.id = id;
- this.qty = qty;
- }
- }
|