示例#1
0
 public void MouseClick()
 {
     if (isDrafting == true)
     {
         hand.AddToDiscard(gameObject);
         isDrafting = false;
         DiscardPile.GetComponent <DraftCards>().EndDraft(gameObject);
     }
 }
示例#2
0
 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>();
 }
示例#3
0
 // Start is called before the first frame update
 void Start()
 {
     _draftCards = DiscardPile.GetComponent <DraftCards>();
     CreateDeck();
     ShuffleDeck();
 }
示例#4
0
 // Start is called before the first frame update
 void Start()
 {
     initialCardGap = cardGap;
     CanvasRect     = Canvas.GetComponent <RectTransform>();
     _draftCards    = DiscardPile.GetComponent <DraftCards>();
 }