UserProperty.cs 768 B

12345678910111213141516171819202122232425262728293031
  1. using System;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using UnityEngine;
  5. public static class UserProperty
  6. {
  7. // Start is called before the first frame update
  8. public static int userId = 1;
  9. public static string name = "任天堂";
  10. public static int coin = 1005;
  11. public static DateTime tokenExpireTime;
  12. //public static Dictionary<string, int> foods = new();
  13. //public static Dictionary<string, int> toys = new();
  14. //public static Dictionary<string, int> others = new();
  15. public static Dictionary<string, List<ItemStock>> itemStocks = new();
  16. }
  17. public class ItemStock
  18. {
  19. public string id;
  20. public int qty;
  21. public ItemStock(string id, int qty)
  22. {
  23. this.id = id;
  24. this.qty = qty;
  25. }
  26. }