Class ProductLocalPrice
Class ProductLocalPrice.
Inherited Members
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
Namespace: UnityEngine.Industrial.Configuring.Providers
Syntax
public class ProductLocalPrice : MonoBehaviour
Fields
context
The context
Declaration
public Context context
Field Value
Type | Description |
---|---|
Context |
customCurrenyCulture
The custom curreny culture
Declaration
[Tooltip("Currency culture, such as; 'en-US' or 'de-DE' ... If left empty current culture will be used")]
public string customCurrenyCulture
Field Value
Type | Description |
---|---|
String |
defaultPrice
The default price
Declaration
public double defaultPrice
Field Value
Type | Description |
---|---|
Double |
featureSetPrices
The feature set prices
Declaration
public List<FeatureSetPrice> featureSetPrices
Field Value
Type | Description |
---|---|
List<FeatureSetPrice> |
product
The product
Declaration
public Product product
Field Value
Type | Description |
---|---|
Product |
Properties
CultureInfo
Gets the culture information.
Declaration
public CultureInfo CultureInfo { get; }
Property Value
Type | Description |
---|---|
CultureInfo | The culture information. |
Methods
Generate(Product, Context)
Generates the specified product.
Declaration
public void Generate(Product product, Context context)
Parameters
Type | Name | Description |
---|---|---|
Product | product | The product. |
Context | context | The context. |
UpdateData(Product, Context)
Updates the data.
Declaration
public void UpdateData(Product product, Context context)
Parameters
Type | Name | Description |
---|---|---|
Product | product | The product. |
Context | context | The context. |
Exceptions
Type | Condition |
---|---|
ArgumentException | Cannot update the pricing info for a different product. |
ArgumentException | Cannot update the pricing info for a different context. |
ArgumentException | Cannot update the pricing info for a different product. |
ArgumentException | Cannot update the pricing info for a different context. |