Example #1
0
 private void SetupBoard()
 {
     PlayerDeckManager    = playerDeckManager;
     PlayerHand           = playerHand;
     PlayerDiscardManager = playerDiscardManager;
     PlayerCam            = playerCam;
     CardGameRef          = this;
     // PlayerHealthGlobe = playerHealthGlobe;
 }
Example #2
0
 // Start is called before the first frame update
 void Start()
 {
     if (!TheDeck)
     {
         TheDeck = GetComponentInChildren <PlayerDeck>();
     }
     if (!TheDiscard)
     {
         TheDiscard = GetComponentInChildren <PlayerDiscard>();
     }
     if (!TheDeck || !TheDiscard || !TheBoard)
     {
         Debug.LogError(this.gameObject.name + " does not have all the required components!");
     }
 }