Пример #1
0
    void Start()
    {
        DeckModel deckModel = GetComponent <DeckModel>();

        if (cardsToStart == null)
        {
            cardsToStart = new List <CardPrototype>();
        }

        for (var i = cardsToStart.Count - 1; i >= 0; i--)
        {
            var card = cardsToStart[i];
            deckModel.PutOnTop(card.Instantiate());
        }
    }