public void ShowForCharacter()
 {
     if (SelectedUnit == null)
     {
         return;
     }
     ShowDeckScreen.ShowDeckForSelectedCharacter();
 }
 public void ShowExhaust()
 {
     if (SelectedUnit == null)
     {
         return;
     }
     ShowDeckScreen.ShowExhaustPile();
 }
 public void ShowDraw()
 {
     if (SelectedUnit == null)
     {
         return;
     }
     ShowDeckScreen.ShowDrawPile();
 }
 public void ShowDiscard()
 {
     if (SelectedUnit == null)
     {
         return;
     }
     ShowDeckScreen.ShowDiscardPile();
 }
Пример #5
0
    public static void InitializeCampaignScreen()
    {
        MissionListPrefab.Instance.Initialize();
        RosterPrefab.Instance.Initialize();

        ShowDeckScreen.Hide();
        CardRewardScreen.Hide();
        AssignFreeAugmentationsPanel.Instance.Hide();
        SelectCardToAddFromInventoryScreen.Hide();
        ShopScreen.Instance.Hide();
    }
 public override void OnAssignment(AbstractBattleUnit abstractBattleUnit)
 {
     ShowDeckScreen.ShowMandatorySelectCardFromCharacterDeckScreen((cardSelected) =>
     {
         cardSelected.AddSticker(this.Effect);
     },
                                                                   () =>
     {
         throw new Exception("Cannot select card");
     },
                                                                   (card) =>
     {
         return(Effect.IsCardTagApplicable(card));
     },
                                                                   prompt: "Adds effect to card: " + Effect.CardDescriptionAddendum());
 }
Пример #7
0
 // Use this for initialization
 void Start()
 {
     Button.onClick.AddListener(() =>
     {
         if (PileType == PileType.DISCARD)
         {
             ShowDeckScreen.ShowDiscardPile();
         }
         else if (PileType == PileType.DRAW)
         {
             ShowDeckScreen.ShowDrawPile();
         }
         else if (PileType == PileType.EXHAUST)
         {
             ShowDeckScreen.ShowExhaustPile();
         }
     });
 }
    public void Start()
    {
        INSTANCE = this;
        SelectCardInHandOverlay.Hide();
        ShowDeckScreen.Hide();

        GameObject.FindObjectOfType <UtilityObjectHolder>().Start();

        PotentialBattleEntityEnemySpots      = EnemyUnitSpotsParent.GetComponentsInChildren <BattleUnitPrefab>().ToList();
        PotentialBattleEntityAllySpots       = AllyUnitSpotsParent.GetComponentsInChildren <BattleUnitPrefab>().ToList();
        PotentialBattleEntityLargeEnemySpots = LargeEnemyUnitSpotsParent.GetComponentsInChildren <BattleUnitPrefab>().ToList();
        PotentialBattleEntityHugeEnemySpots  = HugeEnemyUnitSpotsParent.GetComponentsInChildren <BattleUnitPrefab>().ToList();

        state.Deck = new BattleDeck();
        foreach (var character in state.AllyUnitsInBattle)
        {
            character.InitForBattle();
            foreach (var card in character.BattleDeck)
            {
                state.Deck.AddNewCardToDiscardPile(card.CopyCard(logicallyIdenticalToExistingCard: true));
            }
        }

        action.DrawCards(5);

        /// END TODO
        Setup(ServiceLocator.GameState().EnemyUnitsInBattle, ServiceLocator.GameState().AllyUnitsInBattle);

        PotentialBattleEntityAllySpots.ForEach(item => item.HideOrShowAsAppropriate());
        PotentialBattleEntityEnemySpots.ForEach(item => item.HideOrShowAsAppropriate());
        PotentialBattleEntityLargeEnemySpots.ForEach(item => item.HideOrShowAsAppropriate());
        PotentialBattleEntityHugeEnemySpots.ForEach(item => item.HideOrShowAsAppropriate());

        state.EnemyUnitsInBattle.ForEach(item => item.InitForBattle());
        state.AllyUnitsInBattle.ForEach(item => item.InitForBattle());


        BattleStarter.StartBattle(this);
    }
 public void HideDeck()
 {
     ShowDeckScreen.Hide();
 }