IEnumerator RematchPersonalInfoReceived(string inName, int inCue, int inAvatar, int starColor, int starNumber, float TPAScore, int gamesPlayed, int gamesWon, float inCoins, int inStreak)
    {
        while (cueController == null)
        {
            yield return(null);
        }

        yield return(new WaitForEndOfFrame());

        // finally we get to populate info about the other player
        GameManager_script.Instance().PopulateOtherGameProfileInfo(inName, inCue, inAvatar, starColor, starNumber, TPAScore, gamesPlayed, gamesWon, inCoins, inStreak);

        // change player head
        cueController.gamecenter.GetComponent <GameCenter>().ChangeHead2Name();
        cueController.gamecenter.GetComponent <GameCenter>().ChangeHead2Image();

        // change star and other shiites
        cueController.gamecenter.GetComponent <GameCenter>().changeStarImage2(GameManager_script.Instance().otherGameProfileInfo.Star.starType);
        cueController.gamecenter.GetComponent <GameCenter>().changeStarText2("" + GameManager_script.Instance().otherGameProfileInfo.Star.text);

        // stringz ya...
        string centerLabelString = GameManager_script.convertNumberIntoGoodStringFormat(GameManager_script.Instance().rematchYourWinCount, "number") + Localization.Get("SpacedMaoHao") + GameManager_script.convertNumberIntoGoodStringFormat(GameManager_script.Instance().rematchOppoWinCount, "number");

        // reset some middle shiite with the 1:0 or 0:1 shiite
        cueController.gamecenter.GetComponent <GameCenter>().ChangeCenterLabel("Red", centerLabelString);
    }
    IEnumerator FriendPersonalInfoReceived(string inName, int inCue, int inAvatar, int starColor, int starNumber, float TPAScore, int gamesPlayed, int gamesWon, float inCoins, int inStreak, float inWager, int inTableTexture)
    {
        while (cueController == null)
        {
            yield return(null);
        }

        yield return(new WaitForEndOfFrame());

        // finally we get to populate info about the other player
        GameManager_script.Instance().PopulateOtherGameProfileInfo(inName, inCue, inAvatar, starColor, starNumber, TPAScore, gamesPlayed, gamesWon, inCoins, inStreak);

        // change player head
        cueController.gamecenter.GetComponent <GameCenter>().ChangeHead2Name();
        cueController.gamecenter.GetComponent <GameCenter>().ChangeHead2Image();

        // change star and other shiites
        cueController.gamecenter.GetComponent <GameCenter>().changeStarImage2(GameManager_script.Instance().otherGameProfileInfo.Star.starType);
        cueController.gamecenter.GetComponent <GameCenter>().changeStarText2("" + GameManager_script.Instance().otherGameProfileInfo.Star.text);

        // see if we need to change up some shit
        if (GameManager_script.Instance().TableTextureIndex > inTableTexture)
        {
            // change table color
            GameReplaceTableTexture.SingleTon().SetTableTexture(inTableTexture);

            // refund excess wager
            GameManager_script.Instance().UpdateCoinCount(GameManager_script.Instance().CurrentWager - inWager);

            // reset current wager
            GameManager_script.Instance().CurrentWager      = (float)inWager;
            GameManager_script.Instance().CurrentWagerLevel = (float)inTableTexture;

            // reset center label
            cueController.gamecenter.GetComponent <GameCenter>().ChangeCenterLabel("Red", GameManager_script.convertNumberIntoGoodStringFormat(GameManager_script.Instance().CurrentWager * 2.0f, "gamecoinz"));
        }
    }