Exemplo n.º 1
0
    public void ChangeUserID(string userID)
    {
        popUpWindowView.ClosePopUp();
        int aux;

        if (int.TryParse(userID, out aux))
        {
            GLPlayerPrefs.SetInt(ProfileManager.Instance.currentEvaluationScope, "CurrentUserID", aux);
            aux--;
            GLPlayerPrefs.SetInt(ProfileManager.Instance.currentEvaluationScope, "LastUserIDUsed", aux);
            ReloadUserIDText();
            popUpWindowView.LaunchPopUpMessage("Successful", "New User ID was changed successfully");
        }
        else
        {
            popUpWindowView.LaunchPopUpMessage("Change failed", "There was an error trying to converse the input to a number, please try again");
        }
    }