Esempio n. 1
0
    // Use this for initialization
    async void Start()
    {
        CardClient.CardChanged += CardClient_CardChanged;

        cardModel = await CardClient.GetCardAsync(ID);

        name = cardModel.Name;

        var text = GetComponentInChildren <Text>();

        if (text != null)
        {
            text.text = cardModel.Name;
        }
    }
 private Task <CardModel[]> GetCardsAsync(SwimLaneModel swimLane) =>
 Task.WhenAll(from c in swimLane.Cards
              select cardClient.GetCardAsync(c.ID));