Beispiel #1
0
    private GameObject MakePhysicalCard(string card)
    {
        // Find the actual card by the given name
        CardData data = DataLibrary.LoadCardFromString(card);

        GameObject    newCard   = Instantiate(CardPrefab, Vector3.zero, Quaternion.identity) as GameObject;
        CardBehaviour behaviour = newCard.GetComponent <CardBehaviour>();

        behaviour.SetCard(data);

        return(newCard);
    }