public void ShowPlayerFenShu(PlayerEnum indexVal, int fenShuVal)
    {
        int indexPlayer = (int)indexVal - 1;

        indexPlayer = (indexPlayer < 0 || indexPlayer > 3) ? 0 : indexPlayer;
        int fenShuValTmp = (fenShuVal * XKDaoJuGlobalDt.FenShuBeiLv[indexPlayer]);

        if (fenShuValTmp <= 0)
        {
            return;
        }

        XkGameCtrl.PlayerJiFenArray[indexPlayer] += fenShuValTmp;
        XKPlayerScoreCtrl.ChangePlayerScore(indexVal);

        XKPlayerFenShuMove fenShuMoveCom = GetXKPlayerFenShuMove();

        if (fenShuMoveCom == null)
        {
            return;
        }
        Transform playerTr = XKPlayerMoveCtrl.GetXKPlayerMoveCtrl(indexVal).PiaoFenPoint;
//		playerTr = TestPlayerTr; //test

        Vector3 startPos  = XkGameCtrl.GetInstance().GetWorldObjToScreenPos(playerTr.position);
        int     fenShuLen = fenShuVal.ToString().Length;

        startPos.x += 9f * (fenShuLen - 1);
        fenShuMoveCom.SetPlayerFenShuVal(fenShuVal, startPos, indexPlayer);
    }
    public void ShowGamePaiMing()
    {
        //Debug.Log("Unity:"+"ShowGamePaiMing...");
        int timeShengYu = GameTimeBossCtrl.GetInstance().GetTimeBossResidual();

        //timeShengYu = 51; //test.
        BossJiFenCtrl.GetInstance().ShowBossJiFenInfo(timeShengYu);

        int fenShuBoss = BossFenShuVal * timeShengYu;

        //Debug.Log("Unity:"+"fenShuBoss ****************** "+fenShuBoss);
        if (XkGameCtrl.IsActivePlayerOne)
        {
            XkGameCtrl.PlayerJiFenArray[0] += fenShuBoss;
            if (fenShuBoss > 0)
            {
                XKPlayerScoreCtrl.ChangePlayerScore(PlayerEnum.PlayerOne);
            }
        }
        if (XkGameCtrl.IsActivePlayerTwo)
        {
            XkGameCtrl.PlayerJiFenArray[1] += fenShuBoss;
            if (fenShuBoss > 0)
            {
                XKPlayerScoreCtrl.ChangePlayerScore(PlayerEnum.PlayerTwo);
            }
        }
        if (XkGameCtrl.IsActivePlayerThree)
        {
            XkGameCtrl.PlayerJiFenArray[2] += fenShuBoss;
            if (fenShuBoss > 0)
            {
                XKPlayerScoreCtrl.ChangePlayerScore(PlayerEnum.PlayerThree);
            }
        }
        if (XkGameCtrl.IsActivePlayerFour)
        {
            XkGameCtrl.PlayerJiFenArray[3] += fenShuBoss;
            if (fenShuBoss > 0)
            {
                XKPlayerScoreCtrl.ChangePlayerScore(PlayerEnum.PlayerFour);
            }
        }

        for (int i = 0; i < XkGameCtrl.PlayerJiFenArray.Length; i++)
        {
            XkGameCtrl.PlayerJiFenArray[i] = XkGameCtrl.PlayerJiFenArray[i] > MaxGameFenShu
                                ? MaxGameFenShu : XkGameCtrl.PlayerJiFenArray[i];
        }

        for (int i = 0; i < PlayerPaiMingObjArray.Length; i++)
        {
            PlayerPaiMingObjArray[i].SetActive(false);
        }
        XinJiLuObj.SetActive(false);
        HuangGuanObj.SetActive(false);

        int  countJF          = 0;
        bool isActiveXinJiLu  = false;
        bool isActivePlayerJF = false;

        //test start.

        /*XkGameCtrl.PlayerJiFenArray[0] = 123;
         * XkGameCtrl.PlayerJiFenArray[1] = 12345;
         * XkGameCtrl.PlayerJiFenArray[2] = 1234;
         * XkGameCtrl.PlayerJiFenArray[3] = 1234;*/
        //test end.
        int[] playerJFArray = XkGameCtrl.PlayerJiFenArray;
        if (PlayerJiFenList != null)
        {
            PlayerJiFenList.Clear();
            PlayerJiFenList = null;
        }

        PlayerJiFenList = new List <int>(playerJFArray);
        PlayerJiFenList.Sort();
        PlayerJiFenList.Reverse();
        int[] jiLuFenShuKey = { 0, 0, 0, 0 };
        for (int i = 0; i < 4; i++)
        {
            for (int j = 0; j < 4; j++)
            {
                /*Debug.Log("Unity:"+"playerJFArray["+i+"] *** "+playerJFArray[i]
                 +", PlayerJiFenList["+j+"] *** "+PlayerJiFenList[j]);*/
                if (playerJFArray[i] == PlayerJiFenList[j] && jiLuFenShuKey[j] == 0)
                {
                    jiLuFenShuKey[j] = 1;
                    isActivePlayerJF = playerJFArray[i] > 0 ? true : false;
                    if (!isActivePlayerJF && j > 0)
                    {
                        break;
                    }

                    countJF++;
                    if (XKGlobalData.GameVersionPlayer == 0)
                    {
                        if (pcvr.IsHongDDShouBing)
                        {
                            string url = pcvr.GetInstance().m_PlayerHeadUrl[i];
                            XkGameCtrl.GetInstance().m_AsyImage.LoadPlayerHeadImg(url, PlayerNumUITexture[j]);
                        }
                        else
                        {
                            PlayerNumUITexture[j].mainTexture = PlayerTexture[i];
                        }
                    }
                    else
                    {
                        PlayerNumUITexture[j].mainTexture = PlayerTextureShR[i];
                    }

                    switch (j)
                    {
                    case 0:
                        isActivePlayerJF = true;
                        if (XinJiLuVal < PlayerJiFenList[j])
                        {
                            isActiveXinJiLu = true;
                            XinJiLuVal      = PlayerJiFenList[j];
                        }
                        SetPlayerJiFen(PlayerJF_1, PlayerJiFenList[j]);
                        break;

                    case 1:
                        SetPlayerJiFen(PlayerJF_2, PlayerJiFenList[j]);
                        break;

                    case 2:
                        SetPlayerJiFen(PlayerJF_3, PlayerJiFenList[j]);
                        break;

                    case 3:
                        SetPlayerJiFen(PlayerJF_4, PlayerJiFenList[j]);
                        break;
                    }
                    PlayerPaiMingObjArray[j].SetActive(isActivePlayerJF);
                    break;
                }
            }
        }

        if (countJF > 1)
        {
            HuangGuanObj.SetActive(true);
        }
        XinJiLuObj.SetActive(isActiveXinJiLu);

        if (GameJiLuFenShuCtrl.GetInstance() != null)
        {
            GameJiLuFenShuCtrl.GetInstance().ShowGameJiLuScore();
        }
        XKPlayerScoreCtrl.HiddenPlayerScore(PlayerEnum.Null);
    }