void Start()
    {
        //If scene = collection scene of iets dergelijks
        //thisCard = GetComponent<Card>();

        mySprite   = GetComponent <Image>();
        deckEditor = GameObject.FindGameObjectWithTag("DE").GetComponent <DeckBuilding>();
        myPanel    = GameObject.FindGameObjectWithTag("CollectionPanel");

        deckEditor.SetAmountText();
        previewCard = gameObject;
        startScale  = transform.localScale;

        //amountInCollection = 5;
        //if (!GetComponent<DeckCard>().inDeck && DeckBuilding.savedOnce)
        //{
        //    amountInCollection = 1;
        //}
    }
Example #2
0
 void Start()
 {
     deckEditor = GameObject.FindGameObjectWithTag("DE").GetComponent <DeckBuilding>();
 }