Esempio n. 1
0
 public void SpawnCard(Card fromCard, SpawnCard spawn)
 {
     setUpCard(fromCard);
     sendActionToQueue(() => {
         hideMoveFromEnemyAndDisplay(fromCard, spawn);
         boardDef.spawnSpecifiedUnit(fromCard, spawn, this);
         finalizeCardInteraction(fromCard, spawn, fromCard);
     });
 }
Esempio n. 2
0
        public void spawnSpecifiedUnit(Card card, SpawnCard ability, BoardFunctionality boardFunc)
        {
            Card newCard = boardFunc.cardBuilder.cardConstruct(boardFunc.cardConstructor, ability.identifier);

            boardFunc.library = boardFunc.cardConstructor.tempStorage;
            newCard.setSupplementalTextures(boardFunc.library);
            newCard.correctRow(boardFunc.friendlySide).cardsInContainer.Add(newCard);
            newCard.correctRow(boardFunc.friendlySide).loadCardImage(boardFunc.library, newCard);
            newCard.cardProps.exhausted = true;
            //newCard.correctRow(friendlySide).loadCardImagesInContainer(library.cardTextureDictionary);
        }