Пример #1
0
    // Start is called before the first frame update
    void Start()
    {
        TranslationManager.scene = "Bracket";
        tour1.text      = TranslationManager.Get("tour1") != string.Empty ? TranslationManager.Get("tour1") : tour1.text;
        semi_final.text = TranslationManager.Get("semi_final") != string.Empty ? TranslationManager.Get("semi_final") : semi_final.text;
        final.text      = TranslationManager.Get("final") != string.Empty ? TranslationManager.Get("final") : final.text;
        champion.text   = TranslationManager.Get("champion") != string.Empty ? TranslationManager.Get("champion") : champion.text;
        play.text       = TranslationManager.Get("play") != string.Empty ? TranslationManager.Get("play") : play.text;

        /*foreach (Text _text in to_be_determined) {
         *  _text.text = TranslationManager.Get("to_be_determined") != string.Empty ? TranslationManager.Get("to_be_determined") : _text.text;
         * }*/
        for (int pos = 1; pos <= 8; pos++)
        {
            for (int player = 1; player <= 2; player++)
            {
                try {
                    Debug.Log("Challenge (" + (pos) + ")/Player" + player + "/Username");
                    Text to_be_determined = GameObject.Find("Challenge (" + (pos) + ")/Player" + player + "/Username").GetComponent <Text>();
                    to_be_determined.text = TranslationManager.Get("to_be_determined") != string.Empty ? TranslationManager.Get("to_be_determined") : to_be_determined.text;
                }
                catch (System.NullReferenceException ex) { }
            }
        }
    }
 void Start()
 {
     TranslationManager.scene = "Login";
     //--------------Signin------------
     welcome.text              = TranslationManager.Get("welcome") != string.Empty ? TranslationManager.Get("welcome") : welcome.text;
     back.text                 = TranslationManager.Get("back") != string.Empty ? TranslationManager.Get("back") : back.text;
     incorrect.text            = TranslationManager.Get("incorrect") != string.Empty ? TranslationManager.Get("incorrect") : incorrect.text;
     email_or_username.text    = TranslationManager.Get("email_or_username") != string.Empty ? TranslationManager.Get("email_or_username") : email_or_username.text;
     password.text             = TranslationManager.Get("password") != string.Empty ? TranslationManager.Get("password") : password.text;
     forgot_your_password.text = TranslationManager.Get("forgot_your_password") != string.Empty ? TranslationManager.Get("forgot_your_password") : forgot_your_password.text;
     magic_code.text           = TranslationManager.Get("magic_code") != string.Empty ? TranslationManager.Get("magic_code") : magic_code.text;
     new_player.text           = TranslationManager.Get("new_player") != string.Empty ? TranslationManager.Get("new_player") : new_player.text;
     create_account.text       = TranslationManager.Get("create_account") != string.Empty ? TranslationManager.Get("create_account") : create_account.text;
     _continue.text            = TranslationManager.Get("_continue") != string.Empty ? TranslationManager.Get("_continue") : _continue.text;
     //--------------Email------------
     reset_password.text = TranslationManager.Get("reset_password") != string.Empty ? TranslationManager.Get("reset_password") : reset_password.text;
     enter_your_email_below_to_reset_password.text = TranslationManager.Get("enter_your_email_below_to_reset_password") != string.Empty ? TranslationManager.Get("enter_your_email_below_to_reset_password") : enter_your_email_below_to_reset_password.text;
     email.text = TranslationManager.Get("email") != string.Empty ? TranslationManager.Get("email") : email.text;
     //--------------Code------------
     reset_password_code.text = TranslationManager.Get("reset_password") != string.Empty ? TranslationManager.Get("reset_password_code") : reset_password_code.text;
     Enter_the_code.text      = TranslationManager.Get("Enter_the_code") != string.Empty ? TranslationManager.Get("Enter_the_code") : Enter_the_code.text;
     code_expired.text        = TranslationManager.Get("code_expired") != string.Empty ? TranslationManager.Get("code_expired") : code_expired.text;
     resend.text = TranslationManager.Get("resend") != string.Empty ? TranslationManager.Get("resend") : resend.text;
     submit.text = TranslationManager.Get("submit") != string.Empty ? TranslationManager.Get("submit") : submit.text;
     //--------------Change Password------------
     reset_password_change.text  = TranslationManager.Get("reset_password") != string.Empty ? TranslationManager.Get("reset_password_code") : reset_password_change.text;
     Enter_the_new_password.text = TranslationManager.Get("Enter_the_new_password") != string.Empty ? TranslationManager.Get("Enter_the_new_password") : Enter_the_new_password.text;
     new_password.text           = TranslationManager.Get("new_password") != string.Empty ? TranslationManager.Get("new_password") : new_password.text;
     confirm_password.text       = TranslationManager.Get("confirm_password") != string.Empty ? TranslationManager.Get("confirm_password") : confirm_password.text;
     code_expired_change.text    = TranslationManager.Get("code_expired") != string.Empty ? TranslationManager.Get("code_expired") : code_expired_change.text;
     resend_change.text          = TranslationManager.Get("resend") != string.Empty ? TranslationManager.Get("resend") : resend_change.text;
     done.text = TranslationManager.Get("done") != string.Empty ? TranslationManager.Get("done") : done.text;
 }
 // Start is called before the first frame update
 void Start()
 {
     TranslationManager.scene = "IDProof";
     //ID VIEW
     identity_proof.text              = TranslationManager.Get("identity_proof") != string.Empty ? TranslationManager.Get("identity_proof") : identity_proof.text;
     note1.text                       = TranslationManager.Get("note1") != string.Empty ? TranslationManager.Get("note1") : note1.text;
     note2.text                       = TranslationManager.Get("note2") != string.Empty ? TranslationManager.Get("note2") : note2.text;
     note3.text                       = TranslationManager.Get("note3") != string.Empty ? TranslationManager.Get("note3") : note3.text;
     identity_front.text              = TranslationManager.Get("identity_front") != string.Empty ? TranslationManager.Get("identity_front") : identity_front.text;
     identity_back.text               = TranslationManager.Get("identity_back") != string.Empty ? TranslationManager.Get("identity_back") : identity_back.text;
     identity_front_text.text         = TranslationManager.Get("identity_front_text") != string.Empty ? TranslationManager.Get("identity_front_text") : identity_front_text.text;
     identity_back_text.text          = TranslationManager.Get("identity_back_text") != string.Empty ? TranslationManager.Get("identity_back_text") : identity_back_text.text;
     upload_passport.text             = TranslationManager.Get("upload_passport") != string.Empty ? TranslationManager.Get("upload_passport") : upload_passport.text;
     waiting_identity_text_front.text = TranslationManager.Get("waiting_text") != string.Empty ? TranslationManager.Get("waiting_text") : waiting_identity_text_front.text;
     waiting_identity_text_back.text  = TranslationManager.Get("waiting_text") != string.Empty ? TranslationManager.Get("waiting_text") : waiting_identity_text_back.text;
     verified_identity_front.text     = TranslationManager.Get("verified") != string.Empty ? TranslationManager.Get("verified") : verified_identity_front.text;
     verified_identity_back.text      = TranslationManager.Get("verified") != string.Empty ? TranslationManager.Get("verified") : verified_identity_back.text;
     //PASSPORT VIEW
     passport_proof.text              = TranslationManager.Get("passport_proof") != string.Empty ? TranslationManager.Get("passport_proof") : passport_proof.text;
     passport.text                    = TranslationManager.Get("passport") != string.Empty ? TranslationManager.Get("passport") : passport.text;
     passport_text.text               = TranslationManager.Get("passport_text") != string.Empty ? TranslationManager.Get("passport_text") : passport_text.text;
     upload_identity.text             = TranslationManager.Get("upload_identity_card") != string.Empty ? TranslationManager.Get("upload_identity_card") : upload_identity.text;
     waiting_passport_text_front.text = TranslationManager.Get("waiting_text") != string.Empty ? TranslationManager.Get("waiting_text") : waiting_passport_text_front.text;
     verified_passport_front.text     = TranslationManager.Get("verified") != string.Empty ? TranslationManager.Get("verified") : identity_back.text;
     //RESIDENCY VIEW
     address_proof.text  = TranslationManager.Get("address_proof") != string.Empty ? TranslationManager.Get("address_proof") : address_proof.text;
     residency.text      = TranslationManager.Get("residency") != string.Empty ? TranslationManager.Get("residency") : residency.text;
     residency_text.text = TranslationManager.Get("residency_text") != string.Empty ? TranslationManager.Get("residency_text") : residency_text.text;
     waiting_residency_text_front.text = TranslationManager.Get("waiting_text") != string.Empty ? TranslationManager.Get("waiting_text") : waiting_passport_text_front.text;
     verified_residency_front.text     = TranslationManager.Get("verified") != string.Empty ? TranslationManager.Get("verified") : identity_back.text;
 }
Пример #4
0
 void Start()
 {
     TranslationManager.scene = "Loader";
     downloading.text         = TranslationManager.Get("downloading") != string.Empty ? TranslationManager.Get("downloading") : downloading.text;
     reconnect.text           = TranslationManager.Get("reconnect") != string.Empty ? TranslationManager.Get("reconnect") : reconnect.text;
     check_connection.text    = TranslationManager.Get("check_connection") != string.Empty ? TranslationManager.Get("check_connection") : check_connection.text;
     setting_language.text    = TranslationManager.Get("setting_language") != string.Empty ? TranslationManager.Get("setting_language") : setting_language.text;
 }
 // Start is called before the first frame update
 void Start()
 {
     TranslationManager.scene = "Intro";
     CHANGE_THE_WAY_YOU_PLAY  = TranslationManager.Get("change_the_way_you_play") != string.Empty ? TranslationManager.Get("change_the_way_you_play") : "CHANGE THE WAY YOU PLAY";
     DISCOVER_CASH_TOURNAMENT_POWERED_BY_SEEMBA = TranslationManager.Get("discover_cash_tournament_powered_by_seemba") != string.Empty ? TranslationManager.Get("discover_cash_tournament_powered_by_seemba") : "DISCOVER CASH TOURNAMENTS POWERED BY SEEMBA";
     challenges.text = TranslationManager.Get("challenges") != string.Empty ? TranslationManager.Get("challenges") : challenges.text;
     _continue.text  = TranslationManager.Get("continue") != string.Empty ? TranslationManager.Get("continue") : _continue.text;
     Debug.Log("CHANGE_THE_WAY_YOU_PLAY :" + CHANGE_THE_WAY_YOU_PLAY);
     Debug.Log("DISCOVER_CASH_TOURNAMENT_POWERED_BY_SEEMBA :" + DISCOVER_CASH_TOURNAMENT_POWERED_BY_SEEMBA);
 }
Пример #6
0
 // Start is called before the first frame update
 void Start()
 {
     TranslationManager.scene = "Profile";
     games_won.text           = TranslationManager.Get("games_won") != string.Empty ? TranslationManager.Get("games_won") : games_won.text;
     in_a_row.text            = TranslationManager.Get("in_a_row") != string.Empty ? TranslationManager.Get("in_a_row") : in_a_row.text;
     favourite.text           = TranslationManager.Get("favourite") != string.Empty ? TranslationManager.Get("favourite") : favourite.text;
     verified.text            = TranslationManager.Get("verified") != string.Empty ? TranslationManager.Get("verified") : verified.text;
     pending.text             = TranslationManager.Get("pending") != string.Empty ? TranslationManager.Get("pending") : pending.text;
     unverified.text          = TranslationManager.Get("unverified") != string.Empty ? TranslationManager.Get("unverified") : unverified.text;
     history.text             = TranslationManager.Get("history") != string.Empty ? TranslationManager.Get("history") : history.text;
 }
Пример #7
0
 // Start is called before the first frame update
 void Start()
 {
     TranslationManager.scene = "ResultWin";
     you_win.text             = TranslationManager.Get("you_win") != string.Empty ? TranslationManager.Get("you_win") : you_win.text;
     score1.text         = TranslationManager.Get("score") != string.Empty ? TranslationManager.Get("score") : score1.text;
     score2.text         = TranslationManager.Get("score") != string.Empty ? TranslationManager.Get("score") : score2.text;
     victory.text        = TranslationManager.Get("victory") != string.Empty ? TranslationManager.Get("victory") : victory.text;
     congratulation.text = TranslationManager.Get("congratulation") != string.Empty ? TranslationManager.Get("congratulation") : congratulation.text;
     date.text           = TranslationManager.Get("date") != string.Empty ? TranslationManager.Get("date") : date.text;
     ID.text             = TranslationManager.Get("ID") != string.Empty ? TranslationManager.Get("ID") : ID.text;
     _continue.text      = TranslationManager.Get("continue") != string.Empty ? TranslationManager.Get("continue") : _continue.text;
 }
 // Start is called before the first frame update
 void Start()
 {
     TranslationManager.scene = "ResultWaiting";
     waiting_for.text         = TranslationManager.Get("waiting_for") != string.Empty ? TranslationManager.Get("waiting_for") : waiting_for.text;
     player_2.text            = TranslationManager.Get("player_2") != string.Empty ? TranslationManager.Get("player_2") : player_2.text;
     score.text                 = TranslationManager.Get("score") != string.Empty ? TranslationManager.Get("score") : score.text;
     continue_now.text          = TranslationManager.Get("continue_now") != string.Empty ? TranslationManager.Get("continue_now") : continue_now.text;
     and_get_results_later.text = TranslationManager.Get("and_get_results_later") != string.Empty ? TranslationManager.Get("and_get_results_later") : and_get_results_later.text;
     date.text      = TranslationManager.Get("date") != string.Empty ? TranslationManager.Get("date") : date.text;
     ID.text        = TranslationManager.Get("ID") != string.Empty ? TranslationManager.Get("ID") : ID.text;
     _continue.text = TranslationManager.Get("continue") != string.Empty ? TranslationManager.Get("continue") : _continue.text;
 }
Пример #9
0
 // Start is called before the first frame update
 void Start()
 {
     TranslationManager.scene = "ReplayChallenge";
     sorry.text         = TranslationManager.Get("sorry") != string.Empty ? TranslationManager.Get("sorry") : sorry.text;
     bug.text           = TranslationManager.Get("bug") != string.Empty ? TranslationManager.Get("bug") : bug.text;
     replay_now.text    = TranslationManager.Get("replay_now") != string.Empty ? TranslationManager.Get("replay_now") : replay_now.text;
     game_id.text       = TranslationManager.Get("game_id") != string.Empty ? TranslationManager.Get("game_id") : game_id.text;
     date.text          = TranslationManager.Get("date") != string.Empty ? TranslationManager.Get("date") : date.text;
     prize.text         = TranslationManager.Get("prize") != string.Empty ? TranslationManager.Get("prize") : prize.text;
     your_opponent.text = TranslationManager.Get("your_opponent") != string.Empty ? TranslationManager.Get("your_opponent") : your_opponent.text;
     is_waiting.text    = TranslationManager.Get("is_waiting") != string.Empty ? TranslationManager.Get("is_waiting") : is_waiting.text;
     play_now.text      = TranslationManager.Get("play_now") != string.Empty ? TranslationManager.Get("play_now") : play_now.text;
 }
 // Start is called before the first frame update
 void Start()
 {
     TranslationManager.scene = "ResultLose";
     you_lose.text            = TranslationManager.Get("you_lose") != string.Empty ? TranslationManager.Get("you_lose") : you_lose.text;
     defeat.text            = TranslationManager.Get("defeat") != string.Empty ? TranslationManager.Get("defeat") : defeat.text;
     score1.text            = TranslationManager.Get("score") != string.Empty ? TranslationManager.Get("score") : score1.text;
     score2.text            = TranslationManager.Get("score") != string.Empty ? TranslationManager.Get("score") : score2.text;
     your_opponent_won.text = TranslationManager.Get("your_opponent_won") != string.Empty ? TranslationManager.Get("your_opponent_won") : your_opponent_won.text;
     dont_give_up.text      = TranslationManager.Get("dont_give_up") != string.Empty ? TranslationManager.Get("dont_give_up") : dont_give_up.text;
     date.text       = TranslationManager.Get("date") != string.Empty ? TranslationManager.Get("date") : date.text;
     ID.text         = TranslationManager.Get("ID") != string.Empty ? TranslationManager.Get("ID") : ID.text;
     play_again.text = TranslationManager.Get("play_again") != string.Empty ? TranslationManager.Get("play_again") : play_again.text;
     _continue.text  = TranslationManager.Get("continue") != string.Empty ? TranslationManager.Get("continue") : _continue.text;
 }
 // Start is called before the first frame update
 void Start()
 {
     TranslationManager.scene = "ResultEquality";
     equality.text            = TranslationManager.Get("equality") != string.Empty ? TranslationManager.Get("equality") : equality.text;
     try_again.text           = TranslationManager.Get("try_again") != string.Empty ? TranslationManager.Get("try_again") : try_again.text;
     score1.text        = TranslationManager.Get("score") != string.Empty ? TranslationManager.Get("score") : score1.text;
     score2.text        = TranslationManager.Get("score") != string.Empty ? TranslationManager.Get("score") : score2.text;
     you_will_win.text  = TranslationManager.Get("you_will_win") != string.Empty ? TranslationManager.Get("you_will_win") : you_will_win.text;
     never_give_up.text = TranslationManager.Get("never_give_up") != string.Empty ? TranslationManager.Get("never_give_up") : never_give_up.text;
     date.text          = TranslationManager.Get("date") != string.Empty ? TranslationManager.Get("date") : date.text;
     ID.text            = TranslationManager.Get("ID") != string.Empty ? TranslationManager.Get("ID") : ID.text;
     play_again.text    = TranslationManager.Get("play_again") != string.Empty ? TranslationManager.Get("play_again") : play_again.text;
     _continue.text     = TranslationManager.Get("continue") != string.Empty ? TranslationManager.Get("continue") : _continue.text;
 }
Пример #12
0
 void Start()
 {
     TranslationManager.scene     = "Signup";
     create_your.text             = TranslationManager.Get("create_your") != string.Empty ? TranslationManager.Get("create_your") : create_your.text;
     account.text                 = TranslationManager.Get("account") != string.Empty ? TranslationManager.Get("account") : account.text;
     choose_a_username.text       = TranslationManager.Get("choose_a_username") != string.Empty ? TranslationManager.Get("choose_a_username") : choose_a_username.text;
     enter_your_email.text        = TranslationManager.Get("enter_your_email") != string.Empty ? TranslationManager.Get("enter_your_email") : enter_your_email.text;
     enter_your_password.text     = TranslationManager.Get("enter_your_password") != string.Empty ? TranslationManager.Get("enter_your_password") : enter_your_password.text;
     confirm_your_password.text   = TranslationManager.Get("confirm_your_password") != string.Empty ? TranslationManager.Get("confirm_your_password") : confirm_your_password.text;
     have_you_got_an_account.text = TranslationManager.Get("have_you_got_an_account") != string.Empty ? TranslationManager.Get("have_you_got_an_account") : have_you_got_an_account.text;
     signin.text = TranslationManager.Get("signin") != string.Empty ? TranslationManager.Get("signin") : signin.text;
     create.text = TranslationManager.Get("create") != string.Empty ? TranslationManager.Get("create") : create.text;
     choose_your_character.text = TranslationManager.Get("choose_your_character") != string.Empty ? TranslationManager.Get("choose_your_character") : choose_your_character.text;
 }
 void Start()
 {
     TranslationManager.scene   = "BankingInfo";
     cardholder_full_name.text  = TranslationManager.Get("cardholder_full_name") != string.Empty ? TranslationManager.Get("cardholder_full_name") : cardholder_full_name.text;
     wrong_cardholder_name.text = TranslationManager.Get("wrong_cardholder_name") != string.Empty ? TranslationManager.Get("wrong_cardholder_name") : wrong_cardholder_name.text;
     card_number.text           = TranslationManager.Get("card_number") != string.Empty ? TranslationManager.Get("card_number") : card_number.text;
     wrong_card_number.text     = TranslationManager.Get("wrong_card_number") != string.Empty ? TranslationManager.Get("wrong_card_number") : wrong_card_number.text;
     expiry_date.text           = TranslationManager.Get("expiry_date") != string.Empty ? TranslationManager.Get("expiry_date") : expiry_date.text;
     wrong_expiry_date.text     = TranslationManager.Get("wrong_expiry_date") != string.Empty ? TranslationManager.Get("wrong_expiry_date") : wrong_expiry_date.text;
     security_code.text         = TranslationManager.Get("security_code") != string.Empty ? TranslationManager.Get("security_code") : security_code.text;
     wrong_security_code.text   = TranslationManager.Get("wrong_security_code") != string.Empty ? TranslationManager.Get("wrong_security_code") : wrong_security_code.text;
     i_agree_to_Seemba.text     = TranslationManager.Get("i_agree_to_Seemba") != string.Empty ? TranslationManager.Get("i_agree_to_Seemba") : i_agree_to_Seemba.text;
     and.text = TranslationManager.Get("and") != string.Empty ? TranslationManager.Get("and") : and.text;
     terms_conditions.text = TranslationManager.Get("terms_conditions") != string.Empty ? TranslationManager.Get("terms_conditions") : terms_conditions.text;
     privacy_policy.text   = TranslationManager.Get("privacy_policy") != string.Empty ? TranslationManager.Get("privacy_policy") : privacy_policy.text;
     credit.text           = TranslationManager.Get("credit") != string.Empty ? TranslationManager.Get("credit") : credit.text;
     secured_payment.text  = TranslationManager.Get("secured_payment") != string.Empty ? TranslationManager.Get("secured_payment") : secured_payment.text;
 }
 // Start is called before the first frame update
 void Start()
 {
     TranslationManager.scene = "PersonalInfo";
     first_name.text          = TranslationManager.Get("first_name") != string.Empty ? TranslationManager.Get("first_name") : first_name.text;
     last_name.text           = TranslationManager.Get("last_name") != string.Empty ? TranslationManager.Get("last_name") : last_name.text;
     date_of_birth.text       = TranslationManager.Get("date_of_birth") != string.Empty ? TranslationManager.Get("date_of_birth") : date_of_birth.text;
     address.text             = TranslationManager.Get("address") != string.Empty ? TranslationManager.Get("address") : address.text;
     city.text                = TranslationManager.Get("city") != string.Empty ? TranslationManager.Get("city") : city.text;
     zip.text                 = TranslationManager.Get("zip") != string.Empty ? TranslationManager.Get("zip") : zip.text;
     country.text             = TranslationManager.Get("country") != string.Empty ? TranslationManager.Get("country") : country.text;
     phone.text               = TranslationManager.Get("phone") != string.Empty ? TranslationManager.Get("phone") : phone.text;
     TranslationManager.scene = "WithdrawalInfo";
     personal_info.text       = TranslationManager.Get("personal_info") != string.Empty ? TranslationManager.Get("personal_info") : personal_info.text;
     financial_info.text      = TranslationManager.Get("financial_info") != string.Empty ? TranslationManager.Get("financial_info") : financial_info.text;
     id_proof.text            = TranslationManager.Get("id_proof") != string.Empty ? TranslationManager.Get("id_proof") : id_proof.text;
     next_iban.text           = TranslationManager.Get("next") != string.Empty ? TranslationManager.Get("next") : next_iban.text;
     next_personal_info.text  = TranslationManager.Get("next") != string.Empty ? TranslationManager.Get("next") : next_personal_info.text;
     withdraw.text            = TranslationManager.Get("withdraw") != string.Empty ? TranslationManager.Get("withdraw") : withdraw.text;
     enter_your_iban.text     = TranslationManager.Get("enter_your_iban") != string.Empty ? TranslationManager.Get("enter_your_iban") : enter_your_iban.text;
     enter_your_bic.text      = TranslationManager.Get("enter_your_bic") != string.Empty ? TranslationManager.Get("enter_your_bic") : enter_your_bic.text;
     TranslationManager.scene = "IDProof";
     //ID VIEW
     identity_front.text = TranslationManager.Get("identity_front") != string.Empty ? TranslationManager.Get("identity_front") : identity_front.text;
     identity_back.text  = TranslationManager.Get("identity_back") != string.Empty ? TranslationManager.Get("identity_back") : identity_back.text;
     waiting_identity_text_front.text = TranslationManager.Get("waiting_text") != string.Empty ? TranslationManager.Get("waiting_text") : waiting_identity_text_front.text;
     waiting_identity_text_back.text  = TranslationManager.Get("waiting_text") != string.Empty ? TranslationManager.Get("waiting_text") : waiting_identity_text_back.text;
     verified_identity_front.text     = TranslationManager.Get("verified") != string.Empty ? TranslationManager.Get("verified") : verified_identity_front.text;
     verified_identity_back.text      = TranslationManager.Get("verified") != string.Empty ? TranslationManager.Get("verified") : verified_identity_back.text;
     //PASSPORT VIEW
     passport_proof.text = TranslationManager.Get("passport_proof") != string.Empty ? TranslationManager.Get("passport_proof") : passport_proof.text;
     waiting_passport_text_front.text = TranslationManager.Get("waiting_text") != string.Empty ? TranslationManager.Get("waiting_text") : waiting_passport_text_front.text;
     verified_passport_front.text     = TranslationManager.Get("verified") != string.Empty ? TranslationManager.Get("verified") : identity_back.text;
     //RESIDENCY VIEW
     address_proof.text = TranslationManager.Get("address_proof") != string.Empty ? TranslationManager.Get("address_proof") : address_proof.text;
     waiting_residency_text_front.text = TranslationManager.Get("waiting_text") != string.Empty ? TranslationManager.Get("waiting_text") : waiting_passport_text_front.text;
     verified_residency_front.text     = TranslationManager.Get("verified") != string.Empty ? TranslationManager.Get("verified") : identity_back.text;
 }
Пример #15
0
 // Start is called before the first frame update
 void Start()
 {
     TranslationManager.scene = "History";
     games_won.text           = TranslationManager.Get("games_won") != string.Empty ? TranslationManager.Get("games_won") : games_won.text;
     in_a_row.text            = TranslationManager.Get("in_a_row") != string.Empty ? TranslationManager.Get("in_a_row") : in_a_row.text;
 }
Пример #16
0
    // Start is called before the first frame update
    void Start()
    {
        TranslationManager.scene = "Home";
        //Extra Translation
        WIN           = TranslationManager.Get("win") != string.Empty ? TranslationManager.Get("win") : "WIN";
        BUBBLES       = TranslationManager.Get("bubbles") != string.Empty ? TranslationManager.Get("bubbles") : "bubbles";
        AT            = TranslationManager.Get("at") != string.Empty ? TranslationManager.Get("at") : "at";
        GAME_FINISHED = TranslationManager.Get("game_finished") != string.Empty ? TranslationManager.Get("game_finished") : "game finished";
        DUEL          = TranslationManager.Get("duel") != string.Empty ? TranslationManager.Get("duel") : "duel";
        YOU_WON       = TranslationManager.Get("you_won") != string.Empty ? TranslationManager.Get("you_won") : "you won";
        YOU_LOST      = TranslationManager.Get("you_lost") != string.Empty ? TranslationManager.Get("you_lost") : "you lost";
        SCORE_DRAW    = TranslationManager.Get("score_draw") != string.Empty ? TranslationManager.Get("score_draw") : "score draw";
        VICTORY       = TranslationManager.Get("victory") != string.Empty ? TranslationManager.Get("victory") : "victory";
        DEFEAT        = TranslationManager.Get("defeat") != string.Empty ? TranslationManager.Get("defeat") : "defeat";
        EQUALITY      = TranslationManager.Get("equality") != string.Empty ? TranslationManager.Get("equality") : "equality";
        //Home
        ongoing.text       = TranslationManager.Get("ongoing") != string.Empty ? TranslationManager.Get("ongoing") : ongoing.text;
        last_results.text  = TranslationManager.Get("last_results") != string.Empty ? TranslationManager.Get("last_results") : last_results.text;
        more_duels_lr.text = TranslationManager.Get("more_duels") != string.Empty ? TranslationManager.Get("more_duels") : more_duels_lr.text;
        //HaveFun
        foreach (Text duel in duels_hf)
        {
            duel.text = TranslationManager.Get("duels") != string.Empty ? TranslationManager.Get("duels") : duel.text;
        }
        more_duels_hf.text = TranslationManager.Get("more_duels") != string.Empty ? TranslationManager.Get("more_duels") : more_duels_hf.text;
        less_duels_hf.text = TranslationManager.Get("less_duels") != string.Empty ? TranslationManager.Get("less_duels") : less_duels_hf.text;
        foreach (Text multiplayers in multiplayers_hf)
        {
            multiplayers.text = TranslationManager.Get("multiplayers") != string.Empty ? TranslationManager.Get("multiplayers") : multiplayers.text;
        }
        more_tournaments_hf.text = TranslationManager.Get("more_tournaments") != string.Empty ? TranslationManager.Get("more_tournaments") : more_tournaments_hf.text;
        less_tournaments_hf.text = TranslationManager.Get("less_tournaments") != string.Empty ? TranslationManager.Get("less_tournaments") : less_tournaments_hf.text;
        get_bubbles.text         = TranslationManager.Get("get_bubbles") != string.Empty ? TranslationManager.Get("get_bubbles") : get_bubbles.text;
        free_bubbles.text        = TranslationManager.Get("free_bubbles") != string.Empty ? TranslationManager.Get("free_bubbles") : free_bubbles.text;
        extra_bubbles.text       = TranslationManager.Get("extra_bubbles") != string.Empty ? TranslationManager.Get("extra_bubbles") : extra_bubbles.text;
        //----> "HaveFun" POPUPS : Challenges
        bubble_challenge.text   = TranslationManager.Get("challenge") != string.Empty ? TranslationManager.Get("challenge") : bubble_challenge.text;
        bubble_selection.text   = TranslationManager.Get("selection") != string.Empty ? TranslationManager.Get("selection") : bubble_selection.text;
        bubble_win_and_get.text = TranslationManager.Get("win_and_get") != string.Empty ? TranslationManager.Get("win_and_get") : bubble_win_and_get.text;
        bubble_entry_fee.text   = TranslationManager.Get("entry_fee") != string.Empty ? TranslationManager.Get("entry_fee") : bubble_entry_fee.text;
        bubble_go.text          = TranslationManager.Get("go") != string.Empty ? TranslationManager.Get("go") : bubble_go.text;
        //----> "HaveFun" POPUPS : Insufficient Bubbles
        insufficient.text     = TranslationManager.Get("insufficient") != string.Empty ? TranslationManager.Get("insufficient") : insufficient.text;
        bubbles.text          = BUBBLES;
        get_free_bubbles.text = TranslationManager.Get("get_free_bubbles") != string.Empty ? TranslationManager.Get("get_free_bubbles") : get_free_bubbles.text;
        got_it.text           = TranslationManager.Get("got_it") != string.Empty ? TranslationManager.Get("got_it") : got_it.text;
        //----> "HaveFun" POPUPS : Unknown Device
        unknown.text = TranslationManager.Get("unknown") != string.Empty ? TranslationManager.Get("unknown") : unknown.text;
        device.text  = TranslationManager.Get("device") != string.Empty ? TranslationManager.Get("device") : device.text;
        sorry_ads_not_supported.text = TranslationManager.Get("sorry_ads_not_supported") != string.Empty ? TranslationManager.Get("sorry_ads_not_supported") : sorry_ads_not_supported.text;
        got_it_unknown.text          = TranslationManager.Get("got_it") != string.Empty ? TranslationManager.Get("got_it") : got_it_unknown.text;
        //WinMoney
        foreach (Text duel in duels_wm)
        {
            duel.text = TranslationManager.Get("duels") != string.Empty ? TranslationManager.Get("duels") : duel.text;
        }
        more_duels_wm.text = TranslationManager.Get("more_duels") != string.Empty ? TranslationManager.Get("more_duels") : more_duels_wm.text;
        less_duels_wm.text = TranslationManager.Get("less_duels") != string.Empty ? TranslationManager.Get("less_duels") : less_duels_wm.text;
        foreach (Text multiplayers in multiplayers_wm)
        {
            multiplayers.text = TranslationManager.Get("multiplayers") != string.Empty ? TranslationManager.Get("multiplayers") : multiplayers.text;
        }
        more_tournaments_wm.text = TranslationManager.Get("more_tournaments") != string.Empty ? TranslationManager.Get("more_tournaments") : more_tournaments_wm.text;
        less_tournaments_wm.text = TranslationManager.Get("less_tournaments") != string.Empty ? TranslationManager.Get("less_tournaments") : less_tournaments_wm.text;
        //----> "WinMoney" POPUPS : Payment failed
        payment_failed.text           = TranslationManager.Get("payment_failed") != string.Empty ? TranslationManager.Get("payment_failed") : payment_failed.text;
        please_make_sur.text          = TranslationManager.Get("please_make_sur") != string.Empty ? TranslationManager.Get("please_make_sur") : please_make_sur.text;
        _continue_payment_failed.text = TranslationManager.Get("continue") != string.Empty ? TranslationManager.Get("continue") : _continue_payment_failed.text;
        //----> "WinMoney" POPUPS : withdrawal confirmed
        withdrawal.text       = TranslationManager.Get("withdrawal") != string.Empty ? TranslationManager.Get("withdrawal") : withdrawal.text;
        confirmed.text        = TranslationManager.Get("confirmed") != string.Empty ? TranslationManager.Get("confirmed") : confirmed.text;
        you_will_receive.text = TranslationManager.Get("you_will_receive") != string.Empty ? TranslationManager.Get("you_will_receive") : you_will_receive.text;
        working_days.text     = TranslationManager.Get("working_days") != string.Empty ? TranslationManager.Get("working_days") : working_days.text;
        great.text            = TranslationManager.Get("great") != string.Empty ? TranslationManager.Get("great") : great.text;
        //----> "WinMoney" POPUPS : congratulations
        congratulations.text      = TranslationManager.Get("congratulations") != string.Empty ? TranslationManager.Get("congratulations") : congratulations.text;
        transaction_accepted.text = TranslationManager.Get("transaction_accepted") != string.Empty ? TranslationManager.Get("transaction_accepted") : transaction_accepted.text;
        ok.text = TranslationManager.Get("ok") != string.Empty ? TranslationManager.Get("ok") : ok.text;
        //----> "WinMoney" POPUPS : desactivate vpn
        desactivate_vpn.text   = TranslationManager.Get("desactivate") != string.Empty ? TranslationManager.Get("desactivate") : desactivate_vpn.text;
        your_vpn.text          = TranslationManager.Get("your_vpn") != string.Empty ? TranslationManager.Get("your_vpn") : your_vpn.text;
        you_cant_play_vpn.text = TranslationManager.Get("you_cant_play_vpn") != string.Empty ? TranslationManager.Get("you_cant_play_vpn") : you_cant_play_vpn.text;
        got_it_vpn.text        = TranslationManager.Get("got_it") != string.Empty ? TranslationManager.Get("got_it") : got_it_vpn.text;
        //----> "WinMoney" POPUPS : desactivate dev mode
        desactivate_dev_mode.text     = TranslationManager.Get("desactivate") != string.Empty ? TranslationManager.Get("desactivate") : desactivate_dev_mode.text;
        The_development_settings.text = TranslationManager.Get("The_development_settings") != string.Empty ? TranslationManager.Get("The_development_settings") : The_development_settings.text;
        you_cant_play_dev_mode.text   = TranslationManager.Get("you_cant_play_dev_mode") != string.Empty ? TranslationManager.Get("you_cant_play_dev_mode") : you_cant_play_dev_mode.text;
        got_it_dev_mode.text          = TranslationManager.Get("got_it") != string.Empty ? TranslationManager.Get("got_it") : got_it_dev_mode.text;
        //----> "WinMoney" POPUPS : prohibited location
        prohibited.text             = TranslationManager.Get("prohibited") != string.Empty ? TranslationManager.Get("prohibited") : prohibited.text;
        location.text               = TranslationManager.Get("location") != string.Empty ? TranslationManager.Get("location") : location.text;
        real_money_tournaments.text = TranslationManager.Get("real_money_tournaments") != string.Empty ? TranslationManager.Get("real_money_tournaments") : real_money_tournaments.text;
        got_it_prohibited.text      = TranslationManager.Get("got_it") != string.Empty ? TranslationManager.Get("got_it") : got_it_prohibited.text;
        //----> "WinMoney" POPUPS : cash challenge
        cash_challenge.text   = TranslationManager.Get("challenge") != string.Empty ? TranslationManager.Get("challenge") : cash_challenge.text;
        cash_selection.text   = TranslationManager.Get("selection") != string.Empty ? TranslationManager.Get("selection") : cash_selection.text;
        cash_win_and_get.text = TranslationManager.Get("win_and_get") != string.Empty ? TranslationManager.Get("win_and_get") : cash_win_and_get.text;
        cash_entry_fee.text   = TranslationManager.Get("entry_fee") != string.Empty ? TranslationManager.Get("entry_fee") : cash_entry_fee.text;
        cash_go.text          = TranslationManager.Get("cash_go") != string.Empty ? TranslationManager.Get("o") : cash_go.text;
        //----> "WinMoney" POPUPS : insufficient balance
        cash_insufficient.text   = TranslationManager.Get("cash_insufficient") != string.Empty ? TranslationManager.Get("cash_insufficient") : cash_insufficient.text;
        balance.text             = TranslationManager.Get("balance") != string.Empty ? TranslationManager.Get("balance") : balance.text;
        credit_your_account.text = TranslationManager.Get("credit_your_account") != string.Empty ? TranslationManager.Get("credit_your_account") : credit_your_account.text;
        cash_credit.text         = TranslationManager.Get("cash_credit") != string.Empty ? TranslationManager.Get("cash_credit") : cash_credit.text;
        //Setting
        account.text           = TranslationManager.Get("account") != string.Empty ? TranslationManager.Get("account") : account.text;
        credit.text            = TranslationManager.Get("credit") != string.Empty ? TranslationManager.Get("credit") : credit.text;
        withdraw.text          = TranslationManager.Get("withdraw") != string.Empty ? TranslationManager.Get("withdraw") : withdraw.text;
        history.text           = TranslationManager.Get("history") != string.Empty ? TranslationManager.Get("history") : history.text;
        help_center.text       = TranslationManager.Get("help_center") != string.Empty ? TranslationManager.Get("help_center") : help_center.text;
        back_to_game_menu.text = TranslationManager.Get("back_to_game_menu") != string.Empty ? TranslationManager.Get("back_to_game_menu") : back_to_game_menu.text;
        log_out.text           = TranslationManager.Get("log_out") != string.Empty ? TranslationManager.Get("log_out") : log_out.text;
        //Account
        personal_info.text = TranslationManager.Get("personal_info") != string.Empty ? TranslationManager.Get("personal_info") : personal_info.text;
        security.text      = TranslationManager.Get("security") != string.Empty ? TranslationManager.Get("security") : security.text;
        id_proof.text      = TranslationManager.Get("id_proof") != string.Empty ? TranslationManager.Get("id_proof") : id_proof.text;
        //Security
        email.text = TranslationManager.Get("email") != string.Empty ? TranslationManager.Get("email") : email.text;
        //"change" word moved to "Security POPUPS : Current Password"
        //----> "Security" COMMUN TEXT BETWEEN SECURITY POPUPS
        foreach (Text _change in change)
        {
            _change.text = TranslationManager.Get("change") != string.Empty ? TranslationManager.Get("change") : _change.text;
        }
        foreach (Text password in passwords)
        {
            password.text = TranslationManager.Get("password") != string.Empty ? TranslationManager.Get("password") : password.text;
        }
        //----> "Security" POPUPS : Current Password
        forgotten.text        = TranslationManager.Get("forgotten") != string.Empty ? TranslationManager.Get("forgotten") : forgotten.text;
        current_password.text = TranslationManager.Get("current_password") != string.Empty ? TranslationManager.Get("current_password") : current_password.text;
        next.text             = TranslationManager.Get("next") != string.Empty ? TranslationManager.Get("next") : next.text;
        //----> "Security" POPUPS : Update Password
        new_password.text            = TranslationManager.Get("new_password") != string.Empty ? TranslationManager.Get("new_password") : new_password.text;
        confirm_password.text        = TranslationManager.Get("confirm_password") != string.Empty ? TranslationManager.Get("confirm_password") : confirm_password.text;
        confirm_update_password.text = TranslationManager.Get("confirm") != string.Empty ? TranslationManager.Get("confirm") : confirm_update_password.text;
        //----> "Security" POPUPS : Password Updated
        changed.text       = TranslationManager.Get("changed") != string.Empty ? TranslationManager.Get("changed") : new_password.text;
        your_password.text = TranslationManager.Get("your_password") != string.Empty ? TranslationManager.Get("your_password") : your_password.text;
        _great.text        = TranslationManager.Get("great") != string.Empty ? TranslationManager.Get("great") : _great.text;
        //----> "Security" POPUPS : Forget Password
        //----> "Security" POPUPS : Email Sent
        //Wallet
        foreach (Text title in accountTitle)
        {
            title.text = TranslationManager.Get("account") != string.Empty ? TranslationManager.Get("account") : title.text;
        }
        foreach (Text title in creditTitle)
        {
            title.text = TranslationManager.Get("creditTitle") != string.Empty ? TranslationManager.Get("creditTitle") : title.text;
        }
        select1.text = TranslationManager.Get("select") != string.Empty ? TranslationManager.Get("select") : select1.text;
        select2.text = TranslationManager.Get("select") != string.Empty ? TranslationManager.Get("select") : select2.text;
        select3.text = TranslationManager.Get("select") != string.Empty ? TranslationManager.Get("select") : select3.text;
        select4.text = TranslationManager.Get("select") != string.Empty ? TranslationManager.Get("select") : select4.text;

        /*selected1.text = TranslationManager.Get("select") != string.Empty ? TranslationManager.Get("select") : selected1.text;
        *  selected2.text = TranslationManager.Get("select") != string.Empty ? TranslationManager.Get("select") : selected2.text;
        *  selected3.text = TranslationManager.Get("select") != string.Empty ? TranslationManager.Get("select") : selected3.text;
        *  selected4.text = TranslationManager.Get("select") != string.Empty ? TranslationManager.Get("select") : selected4.text;*/
        foreach (Text title in other_amount)
        {
            title.text = TranslationManager.Get("other_amount") != string.Empty ? TranslationManager.Get("other_amount") : title.text;
        }
        foreach (Text title in creditWallet)
        {
            title.text = TranslationManager.Get("creditWallet") != string.Empty ? TranslationManager.Get("creditWallet") : title.text;
        }
        foreach (Text title in secured_payment)
        {
            title.text = TranslationManager.Get("secured_payment") != string.Empty ? TranslationManager.Get("secured_payment") : title.text;
        }
        //----> "Wallet" POPUPS : Age Verification
        age.text          = TranslationManager.Get("age") != string.Empty ? TranslationManager.Get("age") : age.text;
        verification.text = TranslationManager.Get("verification") != string.Empty ? TranslationManager.Get("verification") : verification.text;
        enter_age.text    = TranslationManager.Get("enter_age") != string.Empty ? TranslationManager.Get("enter_age") : enter_age.text;
        by_clicking.text  = TranslationManager.Get("by_clicking") != string.Empty ? TranslationManager.Get("by_clicking") : by_clicking.text;
        _continue_age_verification.text = TranslationManager.Get("continue") != string.Empty ? TranslationManager.Get("continue") : _continue_age_verification.text;
        //----> "Wallet" POPUPS : Age Too Young
        sorry.text             = TranslationManager.Get("sorry") != string.Empty ? TranslationManager.Get("sorry") : sorry.text;
        you_are_too_young.text = TranslationManager.Get("you_are_too_young") != string.Empty ? TranslationManager.Get("you_are_too_young") : you_are_too_young.text;
        we_apologize.text      = TranslationManager.Get("we_apologize") != string.Empty ? TranslationManager.Get("we_apologize") : we_apologize.text;
        got_it_to_young.text   = TranslationManager.Get("got_it") != string.Empty ? TranslationManager.Get("got_it") : got_it_to_young.text;;
        //----> "Wallet" POPUPS : Payment
        select.text                   = TranslationManager.Get("select") != string.Empty ? TranslationManager.Get("select") : select.text;
        payment_method.text           = TranslationManager.Get("payment_method") != string.Empty ? TranslationManager.Get("payment_method") : payment_method.text;
        _continue_payment_method.text = TranslationManager.Get("select") != string.Empty ? TranslationManager.Get("select") : select.text;
        //----> "Wallet" POPUPS : Prohibited location
        _prohibited.text = TranslationManager.Get("prohibited") != string.Empty ? TranslationManager.Get("prohibited") : _prohibited.text;
        _location.text   = TranslationManager.Get("location") != string.Empty ? TranslationManager.Get("location") : _location.text;
        _credit_isnot_authorized.text   = TranslationManager.Get("credit_isnot_authorized") != string.Empty ? TranslationManager.Get("credit_isnot_authorized") : _credit_isnot_authorized.text;
        got_it_prohibited_location.text = TranslationManager.Get("got_it") != string.Empty ? TranslationManager.Get("got_it") : got_it_prohibited_location.text;
        //Withdraw
        money.text                        = TranslationManager.Get("money") != string.Empty ? TranslationManager.Get("money") : money.text;
        withdrawTitle.text                = TranslationManager.Get("withdraw") != string.Empty ? TranslationManager.Get("withdraw") : withdrawTitle.text;
        available_balance.text            = TranslationManager.Get("available_balance") != string.Empty ? TranslationManager.Get("available_balance") : available_balance.text;
        enter_the_amount_to_withdraw.text = TranslationManager.Get("enter_the_amount_to_withdraw") != string.Empty ? TranslationManager.Get("enter_the_amount_to_withdraw") : enter_the_amount_to_withdraw.text;
        //----> "Withdraw" POPUPS : Missing info
        unverified.text          = TranslationManager.Get("unverified") != string.Empty ? TranslationManager.Get("unverified") : unverified.text;
        _account.text            = TranslationManager.Get("account") != string.Empty ? TranslationManager.Get("account") : _account.text;
        please_provide.text      = TranslationManager.Get("please_provide") != string.Empty ? TranslationManager.Get("please_provide") : please_provide.text;
        got_it_missing_info.text = TranslationManager.Get("got_it") != string.Empty ? TranslationManager.Get("got_it") : got_it_missing_info.text;
        //----> "Withdraw" POPUPS : Prohibited location
        _prohibited_withdraw.text                = TranslationManager.Get("prohibited") != string.Empty ? TranslationManager.Get("prohibited") : _prohibited_withdraw.text;
        _location_withdraw.text                  = TranslationManager.Get("location") != string.Empty ? TranslationManager.Get("location") : _location_withdraw.text;
        __withdraw_isnot_authorized.text         = TranslationManager.Get("withdrawal_isnot_authorized") != string.Empty ? TranslationManager.Get("withdrawal_isnot_authorized") : __withdraw_isnot_authorized.text;
        got_it_prohibited_location_withdraw.text = TranslationManager.Get("got_it") != string.Empty ? TranslationManager.Get("got_it") : got_it_prohibited_location_withdraw.text;
        //HelpCenter
        legal.text   = TranslationManager.Get("legal") != string.Empty ? TranslationManager.Get("legal") : legal.text;
        contact.text = TranslationManager.Get("contact") != string.Empty ? TranslationManager.Get("contact") : contact.text;
    }
    void OnEnable()
    {
        if (initialized == false)
        {
            initialized = true;

            HomeController.NoOngoing = false;
            InvokeRepeating("removeDuplication", 0f, 0.2f);
            userId = um.getCurrentUserId();
            token  = um.getCurrentSessionToken();
            ArrayList ListItems   = new ArrayList();
            ArrayList controllers = new ArrayList();
            UnityThreading.ActionThread thread;
            thread = UnityThreadHelper.CreateThread(() =>
            {
                Items1vs1SeeResults     = challengeManager.getSeeResultsChallenges(token);
                Items1vs1Pending        = challengeManager.getPendingChallenges(token);
                ItemsTournamentsPending = tm.getUserPendingTournaments(token);
                onGoingItemsCount       = Items1vs1SeeResults.Count + Items1vs1Pending.Count;
                UnityThreadHelper.Dispatcher.Dispatch(() =>
                {
                    ContentOngoing.SetActive(true);
                    ContentOngoing.SetActive(false);
                    if (ItemsTournamentsPending.Count != 0)
                    {
                        ContentOngoing.SetActive(true);
                        foreach (JSONNode item in ItemsTournamentsPending)
                        {
                            GameObject newItem = Instantiate(tournamentPrefab) as GameObject;
                            OnGoingTournamentListItemController controller = newItem.GetComponent <OnGoingTournamentListItemController>();
                            switch (item["nb_players"].AsInt)
                            {
                            case TournamentManager.TOURNAMENT_8: break;

                            case TournamentManager.TOURNAMENT_16: break;

                            case TournamentManager.TOURNAMENT_32: break;
                            }
                            string date                  = item["createdAt"].Value.ToString().Substring(0, item["createdAt"].Value.ToString().IndexOf("T"));
                            string hour                  = item["createdAt"].Value.ToString().Substring(item["createdAt"].Value.ToString().IndexOf("T") + 1, 5).Replace(":", "H") + "MIN";
                            controller.status.text       = date + " " + HomeTranslationController.AT + " " + hour;
                            controller.tournamentId.text = item["_id"].Value;
                            SetControllerTournamentTitle(item, controller);
                            controller.GoToBracket.onClick.AddListener(() =>
                            {
                                TournamentController.setCurrentTournamentID(item["_id"].Value);
                                SceneManager.LoadScene("Bracket");
                            });
                            newItem.transform.parent             = ContentPanel.transform;
                            RectTransform myLayoutElement        = newItem.GetComponent <RectTransform>();
                            myLayoutElement.transform.localScale = Vector3.one;
                        }
                    }
                    if (Items1vs1SeeResults.Count != 0)
                    {
                        ContentOngoing.SetActive(true);
                        foreach (Challenge item in Items1vs1SeeResults)
                        {
                            GameObject newItem = Instantiate(ListItemPrefab) as GameObject;
                            OnGoingGameListItemController controller = newItem.GetComponent <OnGoingGameListItemController>();
                            controller.challengeResultId.text        = item._id;
                            controller.challengeId.text = item._id;
                            SetControllerTitle(item, controller);
                            controller.Result.transform.localScale = Vector3.zero;
                            controller.SeeResult.gameObject.SetActive(true);
                            controller.status.text = HomeTranslationController.GAME_FINISHED;
                            controller.SeeResult.onClick.AddListener(() =>
                            {
                                ResultManager.AddGain = true;
                                UnityThreading.ActionThread myThread;
                                ChallengeManager.CurrentChallengeId = newItem.transform.GetChild(8).gameObject.GetComponent <Text>().text;
                                SceneManager.LoadScene("Loader", LoadSceneMode.Additive);
                                thread = UnityThreadHelper.CreateThread(() =>
                                {
                                    challengeManager.UpdateChallengeStatusToFinished(token, ChallengeManager.CurrentChallengeId);
                                    Challenge selectedChallenge = challengeManager.getChallenge(ChallengeManager.CurrentChallengeId, token);
                                    UnityThreadHelper.Dispatcher.Dispatch(() =>
                                    {
                                        float?score1 = selectedChallenge.user_1_score;
                                        float?score2 = selectedChallenge.user_2_score;
                                        if (score1 > score2 && selectedChallenge.matched_user_1._id == userId)
                                        {
                                            SceneManager.LoadScene("ResultWin");
                                            //Update User
                                            Win();
                                        }
                                        else if (score1 < score2 && selectedChallenge.matched_user_1._id == userId)
                                        {
                                            SceneManager.LoadScene("ResultLose");
                                            //Update User
                                            Loss();
                                        }
                                        else if (score1 > score2 && selectedChallenge.matched_user_2._id == userId)
                                        {
                                            SceneManager.LoadScene("ResultLose");
                                            //Update User
                                            Loss();
                                        }
                                        else if (score1 < score2 && selectedChallenge.matched_user_2._id == userId)
                                        {
                                            SceneManager.LoadScene("ResultWin");
                                            //Update User
                                            Win();
                                        }
                                        else if (score1 == score2)
                                        {
                                            SceneManager.LoadScene("ResultEquality");
                                        }
                                        SceneManager.UnloadScene("Loader");
                                    });
                                });
                            });
                            ContentOngoing.SetActive(true);
                            newItem.transform.parent             = ContentPanel.transform;
                            RectTransform myLayoutElement        = newItem.GetComponent <RectTransform>();
                            myLayoutElement.transform.localScale = Vector3.one;
                        }
                    }
                    if (Items1vs1Pending.Count != 0)
                    {
                        ContentOngoing.SetActive(true);
                        foreach (Challenge item in Items1vs1Pending)
                        {
                            float?score1 = null;
                            try
                            {
                                score1 = item.user_1_score;
                            }
                            catch (NullReferenceException ex)
                            {
                                score1 = null;
                            }
                            float?score2 = null;
                            try
                            {
                                score2 = item.user_2_score;
                            }
                            catch (NullReferenceException ex)
                            {
                                score2 = null;
                            }
                            string matched_user_2_id = null;
                            try
                            {
                                matched_user_2_id = item.matched_user_2._id;
                            }
                            catch (NullReferenceException ex)
                            {
                                matched_user_2_id = null;
                            }
                            if ((item.matched_user_1._id == userId && score1 == null) || (matched_user_2_id == userId && score2 == null))
                            {
                                ChallengeManager.CurrentChallengeId = item._id;
                                ReplayChallenge.ChallengeToReplay   = item;
                                SceneManager.LoadScene("ReplayChallenge", LoadSceneMode.Additive);
                                //Exit
                                return;
                            }
                            else
                            {
                                GameObject newItem = Instantiate(ListItemPrefab) as GameObject;
                                OnGoingGameListItemController controller = newItem.GetComponent <OnGoingGameListItemController>();
                                controller.challengeResultId.text        = item._id;
                                controller.challengeId.text = item._id;
                                SetControllerTitle(item, controller);
                                controller.Result.gameObject.SetActive(true);
                                string date                  = item.CreatedAt.ToString().Substring(0, item.CreatedAt.ToString().IndexOf(" ")).Replace("/", "-");
                                string hour                  = item.CreatedAt.ToString().Substring(item.CreatedAt.ToString().IndexOf(" ") + 1, 5).Replace(":", "H") + "MIN";
                                controller.status.text       = date + " " + HomeTranslationController.AT + " " + hour;
                                controller.pending_text.text = TranslationManager.Get("pending") != string.Empty ? TranslationManager.Get("pending") : "pending";;
                                controller.SeeResult.transform.localScale = Vector3.zero;
                                controller.Result.onClick.AddListener(() =>
                                {
                                    ChallengeManager.CurrentChallengeId = newItem.transform.GetChild(8).gameObject.GetComponent <Text>().text;
                                    SceneManager.LoadScene("ResultWaiting", LoadSceneMode.Additive);
                                });
                                newItem.transform.parent             = ContentPanel.transform;
                                RectTransform myLayoutElement        = newItem.GetComponent <RectTransform>();
                                myLayoutElement.transform.localScale = Vector3.one;
                            }
                        }
                    }
                    if (ContentPanel.transform.childCount <= 0)
                    {
                        HomeController.NoOngoing = true;
                        ContentPanel.SetActive(false);
                    }
                    PullToRefresh.ongoingfinished = true;
                });
            });
        }
    }