TaskConfig.cs 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. using System;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using static TaskConfig.windowItemGameObject;
  5. [CreateAssetMenu(menuName = "TaskConfig")]
  6. public class TaskConfig : ScriptableObject
  7. {
  8. public List<TaskItem> TaskList;
  9. [Serializable]
  10. public abstract class windowItemGameObject
  11. {
  12. public abstract List<TaskItem> TaskList { get; set; }
  13. [System.Serializable]
  14. public class TaskItem
  15. {
  16. public List<showdaoju> xiansuos;
  17. public TaskType type;
  18. public bool isNoshow;
  19. public string info;
  20. public string info2;
  21. public string bgName;
  22. public string imgName;
  23. public string taskcheck;
  24. public string centerName;
  25. public float centersize = 1;
  26. public string perbName;
  27. public bool isClose;
  28. public bool isTuo;
  29. public List<showdaoju> daojus;
  30. public bool isClosebtShow;
  31. public bool isTextNext = true;
  32. public bool isARSao=true;
  33. public bool isnongwu;
  34. public int arid;
  35. public List<ChooseItem> chooseItems;
  36. }
  37. [System.Serializable]
  38. public class ChooseItem
  39. {
  40. public string chooseName;
  41. public int nextId;
  42. }
  43. [System.Serializable]
  44. public class showdaoju
  45. {
  46. public bool isshow;
  47. }
  48. }
  49. public enum TaskType
  50. {
  51. Dialogue ,
  52. Xiansuo ,
  53. SkipSence ,
  54. GameTask ,
  55. ARTask ,
  56. ChooseTask,
  57. InputTask,
  58. Other
  59. }
  60. }