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(); }
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 { } }
// OFFERS public void tapjoyShowOffers() { LogUtil.Log("tapjoyShowOffers"); TapjoyPlugin.ShowOffers(); }
public unsafe static long $Invoke88(long instance, long *args) { TapjoyPlugin.ShowOffers(); return(-1L); }