Няма описание
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819202122232425262728
  1. using System.Collections.Generic;
  2. using System.Linq;
  3. using UnityEngine.UIElements;
  4. namespace UnityEditor.Purchasing
  5. {
  6. internal abstract class BasePurchasingState : SimpleStateMachine<bool>.State
  7. {
  8. protected List<IPurchasingSettingsUIBlock> m_UIBlocks;
  9. protected BasePurchasingState(string stateName, SimpleStateMachine<bool> stateMachine)
  10. : base(stateName, stateMachine)
  11. {
  12. m_UIBlocks = new List<IPurchasingSettingsUIBlock>
  13. {
  14. PlatformsAndStoresServiceSettingsBlock.CreateStateSpecificBlock(IsEnabled()),
  15. new AnalyticsWarningSettingsBlock()
  16. };
  17. }
  18. internal List<VisualElement> GetStateUI()
  19. {
  20. return m_UIBlocks.Select(block => block.GetUIBlockElement()).ToList();
  21. }
  22. internal abstract bool IsEnabled();
  23. }
  24. }