Example #1
0
    void OnAccountReturn(object pb)
    {
        Cmd.RetAccountOperation ret = ParseCmd <Cmd.RetAccountOperation>(pb);
        preOperation_   = ret;
        this.accountID_ = ret.accountid;
        this.lateServerIDs.Clear();
        this.lateServerIDs.AddRange(ret.late_serverids);
        foreach (var id in this.lateServerIDs)
        {
            if (id != 0)
            {
                currentServer = GameOption.GetServer(id);
                break;
            }
        }

        Debug.Log("RetAccountOperation:" + ret.accountid.ToString());
        UIs.Instance.Show <LoginSelectServer>();
    }