protected BasePurchasingState(string stateName, SimpleStateMachine <bool> stateMachine)
     : base(stateName, stateMachine)
 {
     m_UIBlocks = new List <IPurchasingSettingsUIBlock>();
     m_UIBlocks.Add(CreateAnalyticsNoticeBlock());
     m_UIBlocks.Add(PlatformsAndStoresServiceSettingsBlock.CreateStateSpecificBlock(IsEnabled()));
 }
Exemplo n.º 2
0
        void CreateGUI()
        {
            var settingsBlock   = PlatformsAndStoresServiceSettingsBlock.CreateStateSpecificBlock(true);
            var settingsElement = settingsBlock.GetUIBlockElement();

            rootVisualElement.Add(settingsElement);
        }