コード例 #1
0
    // Use this for initialization
    void Start()
    {
        index     = 0;
        lastIndex = -1;
        var service = new WorldService();

        worlds = new List <GameWorldData>();
        try
        {
            worlds = service.Get().ToList();
        }
        catch (WebException socketException)
        {
            Debug.LogException(socketException);
        }
        catch (Exception exception)
        {
            Debug.LogException(exception);
        }
        worlds.Insert(0, new GameWorldData());
    }