// Use this for initialization
    public void creditClick()
    {
        Debug.Log(moneyToAdd);
        Debug.Log("credit+ UserManager.CurrentCountryCode: " + UserManager.CurrentCountryCode);
        UserManager um = new UserManager();

        if (string.IsNullOrEmpty(UserManager.CurrentCountryCode))
        {
            UserManager.CurrentCountryCode = um.GetGeoLoc();
        }
        if (CountryController.checkCountry(UserManager.CurrentCountryCode) == true)
        {
            StartCoroutine(nbs.checkInternetConnection((isConnected) => {
                Debug.Log("checked country");
                SceneManager.UnloadSceneAsync("Loader");
                if (isConnected == true)
                {
                    switch (moneyToAdd)
                    {
                    case "5":
                        nbs.Add5Euro();
                        WalletScript.LastCredit = 5;
                        break;

                    case "10":
                        nbs.Add10Euro();
                        WalletScript.LastCredit = 10;
                        break;

                    case "15":
                        nbs.Add15Euro();
                        WalletScript.LastCredit = 15;
                        break;

                    case "20":
                        nbs.Add20Euro();
                        WalletScript.LastCredit = 20;
                        break;

                    default:
                        nbs.AddxEuro(float.Parse(moneyToAdd, CultureInfo.InvariantCulture.NumberFormat));
                        WalletScript.LastCredit = float.Parse(moneyToAdd, CultureInfo.InvariantCulture.NumberFormat);
                        break;
                    }
                }
                else
                {
                    try{
                        SceneManager.UnloadSceneAsync("ConnectionFailed");
                    }catch (ArgumentException ex) {}
                    ConnectivityController.CURRENT_ACTION = ConnectivityController.CREDIT_ACTION;
                    SceneManager.LoadScene("ConnectionFailed", LoadSceneMode.Additive);
                }
            }));
        }
        else
        {
            UnityThreading.ActionThread thread, thr;
            thread = UnityThreadHelper.CreateThread(() => {
                Thread.Sleep(300);
                UnityThreadHelper.Dispatcher.Dispatch(() => {
                    EventsController nbs = new EventsController();
                    nbs.ShowPopupError("popupProhibitedLocationWallet");
                });
            });
        }
    }