SideSlipDeviceGuideEntry.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using System;
  2. using UnityEngine;
  3. namespace AppUI.View.Component
  4. {
  5. /// <summary>
  6. /// 单步引导内容:按需启用图片 / 文案 / 多语言 key / 设备差异节点。
  7. /// </summary>
  8. [Serializable]
  9. public class SideSlipGuideStepContent
  10. {
  11. public bool useImage;
  12. public Sprite image;
  13. public bool useDescription;
  14. [TextArea(2, 6)]
  15. public string description;
  16. public bool useDescriptionKey;
  17. [Tooltip("多语言 key;启用且非空时走 AppUILocalization.GetTextByKey")]
  18. public string descriptionKey;
  19. public bool useDeviceVisualRoot;
  20. [Tooltip("Step 下该设备专属展示根节点(如 Gun),启用后才参与切换")]
  21. public GameObject deviceVisualRoot;
  22. }
  23. /// <summary>
  24. /// <see cref="AimDeviceType"/> 在 <see cref="ModuleSideSlip"/> Step_0~2 中的展示配置。
  25. /// 各 step 字段需勾选对应 bool 后才会在运行时生效。
  26. /// </summary>
  27. [Serializable]
  28. public class SideSlipDeviceGuideEntry
  29. {
  30. public AimDeviceType deviceType;
  31. public SideSlipGuideStepContent step0;
  32. public SideSlipGuideStepContent step1;
  33. public SideSlipGuideStepContent step2;
  34. }
  35. }