Ejemplo n.º 1
0
    public static void SendEnterPlat()
    {
        EnterPlat req = new EnterPlat();

        req.acc_id = GameSystem.Instance.AccountID;
        if (conn != null)
        {
            conn.SendPack(0, req, MsgID.EnterPlatID);
        }
    }
Ejemplo n.º 2
0
    //登录PlatServer请求
    public void EnterPlatReq()
    {
        Debug.Log("---------------------EnterPlatReq");

        if (verifyCDKeyResp != null)
        {
            MainPlayer.Instance.AccountID = verifyCDKeyResp.acc_id;

            EnterPlat enterPlat = new EnterPlat();
            enterPlat.acc_id      = verifyCDKeyResp.acc_id;
            enterPlat.session     = verifyCDKeyResp.session;
            enterPlat.login_index = verifyCDKeyResp.login_index;
            GameSystem.Instance.mNetworkManager.m_platConn.SendPack <EnterPlat>(0, enterPlat, MsgID.EnterPlatID);
            enter_plat_requested = true;
            plat_entered         = false;
            mEnterPlatReqTime    = System.DateTime.Now;
        }
    }