void DrawCards() // nostetaan kortti, instansioidaan se, sen kortin tiedoilla. { Card c = gcs.GetRandomCardFromDatabase(); playerHand.Add(c); GameObject go = Instantiate(cardPrefab, new Vector3(0, 0, 0), Quaternion.identity, playerHandArea.transform); //CardModelScript cms = go.GetComponent<CardModelScript> (); //cms.name = playerHand [playerHand.Count - 1].name; //cms.description = playerHand [playerHand.Count - 1].description; SetCardModel(go, c.name, c.description, c.arts, c.attack, c.def); //Debug.Log ("Player has " + playerHand.Count + " cards in hand"); }