WindowItemConfig.cs 935 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. using System;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using XRTool.Util;
  5. using static WindowConfig;
  6. [CreateAssetMenu(menuName = "WindowItemConfig")]
  7. public class WindowItemConfig : ScriptableObject
  8. {
  9. public List<windowItemGameObject> list;
  10. public List<JsonAsset> listJosn;
  11. [Serializable]
  12. public class windowItemGameObject
  13. {
  14. public List<item> PrefabList;
  15. public windowType type;
  16. }
  17. [Serializable]
  18. public class item
  19. {
  20. public string name;
  21. public GameObject obj;
  22. }
  23. public List<windowItemTexture> listTexture;
  24. [Serializable]
  25. public class windowItemTexture
  26. {
  27. public itemTexture PrefabList;
  28. }
  29. [Serializable]
  30. public class itemTexture
  31. {
  32. public string name;
  33. public Texture obj;
  34. }
  35. [Serializable]
  36. public class JsonAsset
  37. {
  38. public string name;
  39. public TextAsset obj;
  40. }
  41. }