Exemplo n.º 1
0
        public override void Start(object[] args = null)
        {
            base.Start(args);

            ApplyScreenSettings();

            MarketView.Show();

            if (!SavePrefsManager.GetBool(SavePrefsManager.DMARKET_USER_AGREEMENTS))
            {
                ApplyState <UserAgreementsState>();
                return;
            }

            var isLogged = Controller.IsLogged;

            if (isLogged)
            {
                ApplyState <GameInventoryState>();
            }
            else
            {
                ApplyState <MarketLoginFormState>();
            }
        }
Exemplo n.º 2
0
        public override void Start(object[] args = null)
        {
            base.Start(args);

            ApplyScreenSettings();

            WidgetView.Show();

            if (!SavePrefsManager.GetBool(SavePrefsManager.DMARKET_USER_AGREEMENTS))
            {
                ApplyState <UserAgreementsState>();
                return;
            }

            if (Controller.IsLogged)
            {
                ApplyState <BasicWidgetLoggedFormState>();
            }
            else
            {
                ApplyState <BasicWidgetLoginFormState>();
            }
        }