public int RemoveCurrencyMethod(CustomShopController shop, PlayerController player, int cost) { if (removeCurrency != null) { return(removeCurrency(shop, player, cost)); } return(0); }
public bool CustomCanBuyMethod(CustomShopController shop, PlayerController player, int cost) { if (customCanBuy != null) { return(customCanBuy(shop, player, cost)); } return(true); }
//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(); } }