Beispiel #1
0
    /// <summary>
    /// Проверяет, сделан ли переход в магазин на определенную категорию товаров
    /// </summary>
    private void CheckTargetCategory()
    {
        var needShopCategory = DataExchangeBetweenScenes.TryGetDataByKey(ExchangeDataType.Shop_Category);

        if (ReferenceEquals(needShopCategory, null))
        {
            return;
        }

        ChangeCategory((ShopCategoryType)needShopCategory);
    }
Beispiel #2
0
    private void CheckExchangedData()
    {
        var needPopup = DataExchangeBetweenScenes.TryGetDataByKey(ExchangeDataType.Show_Alert_Popup);

        if (!ReferenceEquals(needPopup, null))
        {
            Mediator.Instance.PopupsManager.CreatePopup <AlertPopup>().Init((AlertType)needPopup);
        }


        var needGameMode = DataExchangeBetweenScenes.TryGetDataByKey(ExchangeDataType.Open_Game_Mode);

        if (!ReferenceEquals(needGameMode, null))
        {
            OnModeButtonPressed((GameModeType)needGameMode);
        }
    }