示例#1
0
 public void ShowOffers()
 {
     if (!TapjoyManager.isTapJoyEnabled || TapjoyManager.offerWallOpen)
     {
         return;
     }
     if (!TapjoyManager.DidConnectSucceed)
     {
         return;
     }
     if (!TapjoyManager.isUserIDSet)
     {
         string playerId = Service.Get <CurrentPlayer>().PlayerId;
         if (string.IsNullOrEmpty(playerId))
         {
             return;
         }
         this.SetUserId();
     }
     if (Service.IsSet <AudioManager>())
     {
         Service.Get <AudioManager>().ToggleAllSounds(false);
     }
     TapjoyManager.offerWallOpen = true;
     if (Service.IsSet <GameIdleController>())
     {
         Service.Get <GameIdleController>().Enabled = false;
     }
     TapjoyPlugin.ShowOffers();
 }
示例#2
0
    void Update()
    {
        try
        {
            if (Input.GetMouseButtonDown(0))
            {
                Vector2    mousePosition = CM.ScreenToWorldPoint(Input.mousePosition);
                Collider2D hitCollider   = Physics2D.OverlapPoint(mousePosition);

                if (hitCollider.name == "BotaoComprarVidas")
                {
                    Debug.Log("tapjoy");
                    shouldTransition = true;
                    TapjoyPlugin.ShowOffers();
                }
            }
        }
        catch { }
    }
示例#3
0
    // OFFERS

    public void tapjoyShowOffers()
    {
        LogUtil.Log("tapjoyShowOffers");
        TapjoyPlugin.ShowOffers();
    }
示例#4
0
 public unsafe static long $Invoke88(long instance, long *args)
 {
     TapjoyPlugin.ShowOffers();
     return(-1L);
 }