public void MouseClick() { if (isDrafting == true) { hand.AddToDiscard(gameObject); isDrafting = false; DiscardPile.GetComponent <DraftCards>().EndDraft(gameObject); } }
private void Start() { camera = Camera.main; _canvas = GetComponent <Canvas>(); _rectTransform = GetComponent <RectTransform>(); //startScale = _rectTransform.localScale; hand = GameObject.Find("Hand").GetComponent <Hand>(); DiscardPile = GameObject.Find("Discard Pile").GetComponent <DiscardPile>(); _turnManager = GameObject.Find("GameManager").GetComponent <TurnManager>(); _draftCards = DiscardPile.GetComponent <DraftCards>(); _card = GetComponent <ThisCard>(); }
// Start is called before the first frame update void Start() { _draftCards = DiscardPile.GetComponent <DraftCards>(); CreateDeck(); ShuffleDeck(); }
// Start is called before the first frame update void Start() { initialCardGap = cardGap; CanvasRect = Canvas.GetComponent <RectTransform>(); _draftCards = DiscardPile.GetComponent <DraftCards>(); }