TaskConfig.cs 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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 bool[] xiansuos;
  17. public TaskType type;
  18. public bool isNoshow;
  19. public string lihui;
  20. public string info;
  21. public string info2;
  22. public string bgName;
  23. public string imgName;
  24. public string taskcheck;
  25. public string centerName;
  26. public float centersize = 1;
  27. public float lihuisize = 1;
  28. public string perbName;
  29. public bool isClose;
  30. public bool isTuo;
  31. public bool[] daojus;
  32. public bool isClosebtShow;
  33. public bool isTextNext = true;
  34. public bool isARSao=true;
  35. public int arid;
  36. public string texiao;
  37. public string guochang;
  38. public bool isguochangskip;
  39. }
  40. [System.Serializable]
  41. public class ChooseItem
  42. {
  43. public string chooseName;
  44. public int nextId;
  45. }
  46. [System.Serializable]
  47. public class showdaoju
  48. {
  49. public bool isshow;
  50. }
  51. }
  52. public enum TaskType
  53. {
  54. Dialogue ,
  55. Xiansuo ,
  56. SkipSence ,
  57. GameTask ,
  58. ARTask ,
  59. ChooseTask,
  60. InputTask,
  61. Other
  62. }
  63. }