예제 #1
0
 public int RemoveCurrencyMethod(CustomShopController shop, PlayerController player, int cost)
 {
     if (removeCurrency != null)
     {
         return(removeCurrency(shop, player, cost));
     }
     return(0);
 }
예제 #2
0
 public bool CustomCanBuyMethod(CustomShopController shop, PlayerController player, int cost)
 {
     if (customCanBuy != null)
     {
         return(customCanBuy(shop, player, cost));
     }
     return(true);
 }
예제 #3
0
        //public List<CustomShopItemController> m_customShopItemControllers;
        //public List<ShopItemController> m_shopItemControllers;

        public int CustomPriceMethod(CustomShopController shop, CustomShopItemController shopItem, PickupObject item)
        {
            if (customPrice != null)
            {
                return(customPrice(shop, shopItem, item));
            }
            return(0);
        }
 public void Initialize(PickupObject i, CustomShopController parent)
 {
     this.m_baseParentShop = parent;
     this.InitializeInternal(i);
     if (parent.baseShopType != BaseShopController.AdditionalShopType.NONE)
     {
         base.sprite.depthUsesTrimmedBounds = true;
         base.sprite.HeightOffGround        = -1.25f;
         base.sprite.UpdateZDepth();
     }
 }