Example #1
0
    //确认
    private void OnConfirmClick(GameObject go)
    {
        if (_lblV1.text == "")
        {
            return;
        }
        uint v1 = 0;
        uint v2 = 0;
        uint v3 = 0;

        uint.TryParse(_lblV1.text, out v1);
        uint.TryParse(_lblV2.text, out v2);
        uint.TryParse(_lblV3.text, out v3);

        string cmd = _cmdStr + "(" + v1 + "," + v2 + ");";

        GMCommondExcu msg = new GMCommondExcu();

        msg.commond_str = cmd;
        PlatNetwork.Instance.GMCommondExcuReq(msg);
    }
Example #2
0
 ///
 ///
 //脚本接口
 public void GMCommondExcuReq(GMCommondExcu req)
 {
     GameSystem.Instance.mNetworkManager.m_platConn.SendPack <GMCommondExcu>(0, req, MsgID.GMCommondExcuID);
 }
Example #3
0
 void AddAllGoods(GameObject go)
 {
     for (int i = 1; i <= 2; ++i)
     {
         GMCommondExcu msg = new GMCommondExcu();
         msg.commond_str = "AddGoods(" + i + ", 999999)";
         PlatNetwork.Instance.GMCommondExcuReq(msg);
     }
     for (int i = 9111; i <= 9455; ++i)
     {
         GMCommondExcu msg = new GMCommondExcu();
         msg.commond_str = "AddGoods(" + i + ", 10)";
         PlatNetwork.Instance.GMCommondExcuReq(msg);
     }
     for (int i = 4024; i <= 4024; ++i)
     {
         GMCommondExcu msg = new GMCommondExcu();
         msg.commond_str = "AddGoods(" + i + ", 9999)";
         PlatNetwork.Instance.GMCommondExcuReq(msg);
     }
     for (int i = 10; i <= 10; ++i)
     {
         GMCommondExcu msg = new GMCommondExcu();
         msg.commond_str = "AddGoods(" + i + ", 99999)";
         PlatNetwork.Instance.GMCommondExcuReq(msg);
     }
     for (int i = 3000; i <= 3003; ++i)
     {
         GMCommondExcu msg = new GMCommondExcu();
         msg.commond_str = "AddGoods(" + i + ", 1)";
         PlatNetwork.Instance.GMCommondExcuReq(msg);
     }
     for (int i = 3005; i <= 3006; ++i)
     {
         GMCommondExcu msg = new GMCommondExcu();
         msg.commond_str = "AddGoods(" + i + ", 1)";
         PlatNetwork.Instance.GMCommondExcuReq(msg);
     }
     for (int i = 3100; i <= 3100; ++i)
     {
         GMCommondExcu msg = new GMCommondExcu();
         msg.commond_str = "AddGoods(" + i + ", 1)";
         PlatNetwork.Instance.GMCommondExcuReq(msg);
     }
     for (int i = 3102; i <= 3102; ++i)
     {
         GMCommondExcu msg = new GMCommondExcu();
         msg.commond_str = "AddGoods(" + i + ", 1)";
         PlatNetwork.Instance.GMCommondExcuReq(msg);
     }
     for (int i = 3104; i <= 3106; ++i)
     {
         GMCommondExcu msg = new GMCommondExcu();
         msg.commond_str = "AddGoods(" + i + ", 1)";
         PlatNetwork.Instance.GMCommondExcuReq(msg);
     }
     for (int i = 3201; i <= 3204; ++i)
     {
         GMCommondExcu msg = new GMCommondExcu();
         msg.commond_str = "AddGoods(" + i + ", 1)";
         PlatNetwork.Instance.GMCommondExcuReq(msg);
     }
     for (int i = 3206; i <= 3215; ++i)
     {
         GMCommondExcu msg = new GMCommondExcu();
         msg.commond_str = "AddGoods(" + i + ", 1)";
         PlatNetwork.Instance.GMCommondExcuReq(msg);
     }
     for (int i = 3300; i <= 3300; ++i)
     {
         GMCommondExcu msg = new GMCommondExcu();
         msg.commond_str = "AddGoods(" + i + ", 1)";
         PlatNetwork.Instance.GMCommondExcuReq(msg);
     }
     for (int i = 3303; i <= 3303; ++i)
     {
         GMCommondExcu msg = new GMCommondExcu();
         msg.commond_str = "AddGoods(" + i + ", 1)";
         PlatNetwork.Instance.GMCommondExcuReq(msg);
     }
     for (int i = 3400; i <= 3400; ++i)
     {
         GMCommondExcu msg = new GMCommondExcu();
         msg.commond_str = "AddGoods(" + i + ", 1)";
         PlatNetwork.Instance.GMCommondExcuReq(msg);
     }
     for (int i = 3600; i <= 3600; ++i)
     {
         GMCommondExcu msg = new GMCommondExcu();
         msg.commond_str = "AddGoods(" + i + ", 1)";
         PlatNetwork.Instance.GMCommondExcuReq(msg);
     }
     for (int i = 3700; i <= 3704; ++i)
     {
         GMCommondExcu msg = new GMCommondExcu();
         msg.commond_str = "AddGoods(" + i + ", 1)";
         PlatNetwork.Instance.GMCommondExcuReq(msg);
     }
     for (int i = 6500; i <= 6500; ++i)
     {
         GMCommondExcu msg = new GMCommondExcu();
         msg.commond_str = "AddGoods(" + i + ", 1)";
         PlatNetwork.Instance.GMCommondExcuReq(msg);
     }
     for (int i = 6502; i <= 6502; ++i)
     {
         GMCommondExcu msg = new GMCommondExcu();
         msg.commond_str = "AddGoods(" + i + ", 1)";
         PlatNetwork.Instance.GMCommondExcuReq(msg);
     }
     for (int i = 5; i <= 5; ++i)
     {
         GMCommondExcu msg = new GMCommondExcu();
         msg.commond_str = "AddGoods(" + i + ", 358520)";
         PlatNetwork.Instance.GMCommondExcuReq(msg);
     }
 }