// Activate the store menu and update the coin balance text public void activate_store_menu() { store_menu.SetActive(true); // TODO: Only activate this for TVOS //store_manager_script.set_back_button_focus(); store_manager_script.setStoreCoinText(); }
// Change the currency balance text when the balance changed public void OnCurrencyBalanceChanged(VirtualCurrency vc, int balance, int amountAdded) { GameObject temp_1 = GameObject.Find("store_ui_gr"); if (temp_1 != null) { store_manager_script = temp_1.GetComponent <SOAPStoreManager>(); } store_manager_script.setStoreCoinText(); store_manager_script.setGameOverCoinText(); store_manager_script.setPauseCoinText(); // Unlock achievement for accumulating coins #if UNITY_ANDROID if (balance >= 20000 && balance < 100000) { Achievements.forARainyDayAchievement(); } if (balance > 100000) { Achievements.mustHaveThemAllAchievement(); } #endif }
// Activate the store menu and update the coin balance text public void activate_store_menu() { store_menu.SetActive(true); store_manager_script.setStoreCoinText(); }