Пример #1
0
    public override void OnResponse(string data)
    {
        string[]   strs       = data.Split(',');
        ReturnCode returnCode = (ReturnCode)int.Parse(strs[0]);

        loginPanel.OnLoginRequest(returnCode);
        if (returnCode == ReturnCode.Success)
        {
            string   userName   = strs[1];
            int      totalCount = int.Parse(strs[2]);
            int      winCount   = int.Parse(strs[3]);
            UserData ud         = new UserData(userName, totalCount, winCount);
            gameFacade.SetUserData(ud);
        }
    }