Ejemplo n.º 1
0
        // ============================ SHOP RELATED STATES ==============================

        // -------------------------------------------------------------------------------
        // OverrideShopState
        // required when accessing a shop from within a dungeon map
        // -------------------------------------------------------------------------------
        public void OverrideShopState(TemplateMetaShop templateShop)
        {
            if (templateShop != null)
            {
                ShopOutsidePanel shopPanel = shopOutside.GetComponent <ShopOutsidePanel>();
                shopPanel.shop = templateShop;
            }
        }
Ejemplo n.º 2
0
        // -------------------------------------------------------------------------------
        // LoadStateShopOutside
        // required when accessing a shop from the menu based town
        // -------------------------------------------------------------------------------
        protected void LoadState_ShopOutside(ShopType shopType)
        {
            if (shopType != ShopType.None)
            {
                ShopOutsidePanel shopPanel = shopOutside.GetComponent <ShopOutsidePanel>();
                shopPanel.shop = Finder.map.currentTownConfig.shops.FirstOrDefault(x => x.shopType == shopType);
            }

            shopOutside.SetActive(true);
            playerParty.SetActive(true);
        }