// Use this for initialization void Start() { // Prepare some references: toolTip = GameObject.FindGameObjectWithTag("ToolTip"); deckEditor = FindObjectOfType <V_DeckEditor> (); thisImg = GetComponent <Image> (); }
public void Click() { V_DeckEditor de = GameObject.FindGameObjectWithTag("DeckEditor").GetComponent <V_DeckEditor> (); if (OnDeck) { if (V_DeckEditor.selectedCard == this) { de.Deselect(); } else { de.Select(this); } } else { de.SetCard(index); } }