Exemple #1
0
    public void Bang_Acount(string account, string password, bool lockUI = true)//发送账号绑定消息
    {
        int id = (int)moduleLogin.account.acc_id;

        if (lockUI)
        {
            moduleGlobal.LockUI("", 0.1f);
        }

        WebRequestHelper.BindAcount(id, account, password, "", reply =>
        {
            if (lockUI)
            {
                moduleGlobal.UnLockUI();
            }

            if (reply.code == 0)
            {
                account_IS = true;
            }
            DispatchModuleEvent(EventBindAccount, reply.code);
        });
    }