Пример #1
0
    public void AutoLogin()
    {
        AccountDTO dto = new AccountDTO();

        dto.account  = LocalPlayerPrefabs.GetId();
        dto.password = LocalPlayerPrefabs.GetPwd();
        NetWorkScript.Instance.write(Protocol.TYPE_LOGIN, -1, LoginProtocol.LOGIN_CREQ, dto);
    }
Пример #2
0
    void openCreate()
    {
        var n = LocalPlayerPrefabs.GetName();

        if (!string.IsNullOrEmpty(n))
        {
            cup.AutoCreate(n);
        }
        else
        {
            cup.open();
        }
    }