private bool CheckPossibleOpenBox(Box box) { bool possible = false; switch (box.CostMethod) { case Box.CostType.Coins: possible = TitlePanelManager.TryTakeCoins(box.Cost); break; case Box.CostType.Gems: possible = TitlePanelManager.TryTakeGems(box.Cost); break; case Box.CostType.Free: possible = true; break; case Box.CostType.ADS: possible = ADSManager.IsRewardedAdReady(); break; } return(possible); }
public void OnGetExtraLifeBtn() { ADSManager.ShowADS("rewardedVideo"); life++; secondChance = true; Restart(); getExtraLifeBtn.SetActive(false); }
private void Awake() { instance = this; if (!RuntimeManager.IsInitialized()) { RuntimeManager.Init(); } }
private bool IsADSReady() { bool Ready = ADSManager.IsRewardedAdReady(); CoinsShowADSButton.Interactable = Ready; GemsShowADSButton.Interactable = Ready; TicketsShowADSButton.Interactable = Ready; return(Ready); }
private void Awake() { ADSManager.Init(); Cursor.visible = false; Instance = this; Helper.Set2DCameraToObject(field); #if UNITY_ANDROID if (PlayerPrefs.GetString("AndroidInput") == "TAP") { isTap = true; } else { isTap = false; } #endif }
private void Awake() { instance = this; }