Пример #1
0
    public void MoveUp()
    {
        if (currentSelection == ShopSelection.BoomTower)
        {
            currentSelection = ShopSelection.OrbTower;
            orbTB.Select();
        }
        else if (currentSelection == ShopSelection.OrbTower)
        {
            currentSelection = ShopSelection.FireTower;
            fireTB.Select();
        }
        else if (currentSelection == ShopSelection.FireTower)
        {
            currentSelection = ShopSelection.SkullTower;
            skullTB.Select();
        }
        else if (currentSelection == ShopSelection.SkullTower)
        {
            currentSelection = ShopSelection.BasicTower;
            basicTB.Select();
        }

        ScrollUp();
        SelectOption();

        if (TD_SBF_TowerPlacer.the_tp.gridNodeTBC)
        {
            TD_SBF_TowerPlacer.the_tp.ColorCheck(
                TD_SBF_TowerPlacer.the_tp.currentNode,
                TD_SBF_TowerPlacer.the_tp.gridNodeTBC);
        }
    }
Пример #2
0
    public void OpeningTowerMode()
    {
        bIsNowTowerMode  = true;
        currentSelection = ShopSelection.BasicTower;
        SelectOption();

        cMan.ToggleBuildDescriptionBar();
        buildDescriptionbar.CheckReturnButton();

        StartCoroutine(DelayInitialSelection());

        if (TD_SBF_TowerPlacer.the_tp.gridNodeTBC)
        {
            TD_SBF_TowerPlacer.the_tp.ColorCheck(
                TD_SBF_TowerPlacer.the_tp.currentNode,
                TD_SBF_TowerPlacer.the_tp.gridNodeTBC);
        }
    }
Пример #3
0
 public void GetMoreInventory()
 {
     foreach (Transform c in cardParent.transform)
     {
         Destroy(c.gameObject);
     }
     foreach (Transform c in equipmentParent.transform)
     {
         Destroy(c.gameObject);
     }
     _selection = new ShopSelectionPicker()
                  .GenerateSelection(cards, equipment, party);
     _selection.Cards.ForEach(c =>
                              Instantiate(cardPurchasePrototype, cardParent.transform)
                              .Initialized(c));
     _selection.Equipment.ForEach(e =>
                                  Instantiate(equipmentPurchasePrototype, equipmentParent.transform)
                                  .Initialized(e));
 }