public void SetCardData(CardData cardData, CardController cardController, CardManagerUI cardManagerUI, RectTransform playerHandTransform) { this.cardData = cardData; onTryUseCard += cardController.OnTryUseCard; onCardInfoPanelClose += cardManagerUI.OnCardDescriptionPanelClose; onCardInformationShow = cardManagerUI.OnCardInformationRequired; parentRectTransform = playerHandTransform; }
public CardController(InGameCardCollectionManager cardCollectionManager, CardManagerUI cardManagerUI, GameMachine game) { this.inGameCardCollectionManager = cardCollectionManager; this.cardManagerUI = cardManagerUI; cardTargetFiltterManager = new CardTargetFiltterManager(game.turnController, game.board2DManager); cardEffectManager = new CardEffectManager(); this.game = game; CardPropertiesDatabase.GetCardSubClassByReflection(); }