예제 #1
0
    public virtual void HandleHide()
    {
        GameCommunity.HideActionAppRate();
        GameCommunity.HideSharesCenter();

        AdNetworks.HideAd();
    }
예제 #2
0
    public override void HandleHide()
    {
        base.HandleHide();

        GameCommunity.HideActionAppRate();
        GameCommunity.HideBroadcastRecordPlayShare();
    }
    public override void OnButtonClickEventHandler(string buttonName)
    {
        //LogUtil.Log("OnButtonClickEventHandler: " + buttonName);

        if (UIUtil.IsButtonClicked(buttonEarnVideoAds, buttonName))
        {
            LogUtil.Log("buttonEarnVideoAds: " + buttonName);

            AdNetworks.ShowVideoAd();
        }
        else if (UIUtil.IsButtonClicked(buttonEarnOffers, buttonName))
        {
            LogUtil.Log("buttonEarnOffers: " + buttonName);

            AdNetworks.ShowOfferWall();
        }
        else if (UIUtil.IsButtonClicked(buttonEarnMoreGames, buttonName))
        {
            LogUtil.Log("buttonEarnMoreGames: " + buttonName);

            AdNetworks.ShowMoreApps();
        }
        else if (UIUtil.IsButtonClicked(buttonEarnFacebook, buttonName))
        {
            LogUtil.Log("buttonEarnFacebook: " + buttonName);

            OnFacebookLike("default");

            GameCommunity.LikeUrl(
                SocialNetworkTypes.facebook,
                Locos.Get(LocoKeys.app_web_url));
        }
        else if (UIUtil.IsButtonClicked(buttonEarnTwitter, buttonName))
        {
            LogUtil.Log("buttonEarnTwitter: " + buttonName);

            OnTwitterFollow("default");

            Platforms.ShowWebView(
                Locos.Get(LocoKeys.app_display_name),
                Locos.Get(LocoKeys.app_web_url_twitter));
        }
        else if (UIUtil.IsButtonClicked(buttonEarnWebsite, buttonName))
        {
            LogUtil.Log("buttonEarnWebsite: " + buttonName);

            OnWebsiteViewed("default");

            Platforms.ShowWebView(
                Locos.Get(LocoKeys.app_display_name),
                Locos.Get(LocoKeys.app_web_url));
        }
        else if (UIUtil.IsButtonClicked(buttonEarnViewFullscreenAds, buttonName))
        {
            LogUtil.Log("buttonEarnViewFullscreenAds: " + buttonName);

            AdNetworks.ShowFullscreenAd();
        }
    }
예제 #4
0
    public virtual void AnimateInDelayed()
    {
        GameUIPanelFooter.ShowMain();

        GameCommunity.HideBroadcastRecordPlayShare();

        GameCommunity.ShowActionAppRate();
    }
예제 #5
0
    public override void AnimateOut()
    {
        base.AnimateOut();

        Messenger.Broadcast(GameMessages.gameResultsEnd);

        GameCommunity.HideSharesCenter();
    }
예제 #6
0
    public override void HandleShow()
    {
        base.HandleShow();

        buttonDisplayState     = UIPanelButtonsDisplayState.None;
        characterDisplayState  = UIPanelCharacterDisplayState.None;
        backgroundDisplayState = UIPanelBackgroundDisplayState.None;

        GameCommunity.HideBroadcastRecordPlayShare();
    }
예제 #7
0
    public override void OnButtonClickEventHandler(string buttonName)
    {
        //LogUtil.Log("OnButtonClickEventHandler: " + buttonName);

        if (buttonName == buttonCoins.name)
        {
            GameCommunity.HideGameCommunity();
            GameUIController.ShowProductCurrency();
        }
    }
예제 #8
0
    public override void AnimateIn()
    {
        base.AnimateIn();

        loadData();

        GameCommunity.ShowSharesCenter();

        Messenger.Broadcast(GameMessages.gameResultsStart);
    }
예제 #9
0
    public virtual void showDialog()
    {
        GameCommunity.HideGameCommunity();

        UIPanelCommunityBackground.ShowBackground();

        if (GameController.Instance.gameRunningState == GameRunningState.RUNNING)
        {
            GameController.GameRunningStateOverlay();
        }
    }
예제 #10
0
    public override void OnButtonClickEventHandler(string buttonName)
    {
        //LogUtil.Log("OnButtonClickEventHandler: " + buttonName);

#if ENABLE_FEATURE_PRODUCT_CURRENCY
        if (buttonCoins != null)
        {
            if (buttonName == buttonCoins.name)
            {
                GameCommunity.HideGameCommunity();
                GameUIController.ShowProductCurrency();
            }
        }
#endif
    }