private void SetupBoard() { PlayerDeckManager = playerDeckManager; PlayerHand = playerHand; PlayerDiscardManager = playerDiscardManager; PlayerCam = playerCam; CardGameRef = this; // PlayerHealthGlobe = playerHealthGlobe; }
// 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!"); } }