Example #1
0
 void Awake()
 {
     panelStatic              = this;
     StaticBtnGameManager     = this.btnGameManager;
     StaticBtnGameManagerBack = this.btnGameManagerBack;
     StaticSendManager        = this.sendManager;
     StaticTVMessage          = this.tvMessage;
     StaticWarnings           = warnings;
     StaticYuanPicManger      = yuanPicManger;
     StaticIteminfo           = itemInfo;
 }
    public static void PlayerShowInfo()
    {
        porfes  = BtnGameManager.GetPro(BtnGameManager.yt[0]["ProID"].YuanColumnText);
        myLevel = BtnGameManager.yt[0]["PlayerLevel"].YuanColumnText;
        int ThisMyLevel = int.Parse(BtnGameManager.yt[0]["PlayerLevel"].YuanColumnText);
        int numPro      = int.Parse(BtnGameManager.yt[0]["ProID"].YuanColumnText.Trim());

        if (porfes == StaticLoc.Loc.Get("buttons581"))
        {
            string strPro = "1";
            objsBobotPlayerOne[0] = StaticLoc.Loc.Get("buttons576");
            if (ThisMyLevel - 2 < 0)
            {
                objsBobotPlayerOne[1] = (1).ToString();
            }
            else
            {
                objsBobotPlayerOne[1] = (ThisMyLevel - 2).ToString();
            }
            objsBobotPlayerOne[2] = strPro;



            string strProOne = "3";
            objsBobotPlayerTwe[0] = StaticLoc.Loc.Get("buttons582");
            objsBobotPlayerTwe[1] = (ThisMyLevel + 2).ToString();
            objsBobotPlayerTwe[2] = strProOne;
        }

        if (porfes == StaticLoc.Loc.Get("buttons576"))
        {
            string strPro = "2";
            objsBobotPlayerOne[0] = StaticLoc.Loc.Get("buttons581");
            if (ThisMyLevel - 2 < 0)
            {
                objsBobotPlayerOne[1] = (1).ToString();
            }
            else
            {
                objsBobotPlayerOne[1] = (ThisMyLevel - 2).ToString();
            }
            objsBobotPlayerOne[2] = strPro;

            string strProOne = "3";
            objsBobotPlayerTwe[0] = StaticLoc.Loc.Get("buttons572");
            objsBobotPlayerTwe[1] = (ThisMyLevel + 2).ToString();
            objsBobotPlayerTwe[2] = strProOne;
        }


        if (porfes == StaticLoc.Loc.Get("buttons582"))
        {
            string strPro = "1";
            objsBobotPlayerOne[0] = StaticLoc.Loc.Get("buttons576");
            if (ThisMyLevel - 2 < 0)
            {
                objsBobotPlayerOne[1] = (1).ToString();
            }
            else
            {
                objsBobotPlayerOne[1] = (ThisMyLevel - 2).ToString();
            }
            objsBobotPlayerOne[2] = strPro;

            string strProOne = "2";
            objsBobotPlayerTwe[0] = StaticLoc.Loc.Get("buttons571");
            objsBobotPlayerTwe[1] = (ThisMyLevel + 2).ToString();
            objsBobotPlayerTwe[2] = strProOne;
        }

        PanelStatic.StaticBtnGameManagerBack.invCL.SendMessage("CreateBotPlayer", objsBobotPlayerOne, SendMessageOptions.DontRequireReceiver);
//		PanelStatic.StaticBtnGameManagerBack.invCL.SendMessage("CreateBotPlayer",objsBobotPlayerTwe, SendMessageOptions.DontRequireReceiver);
    }