Class Price
Represents a price in a format that is serialized as both a decimal and a double.
Implements
Inherited Members
Namespace: UnityEngine.Purchasing
Assembly: solution.dll
Syntax
[Serializable]
public class Price : ISerializationCallbackReceiver
Fields
Name | Description |
---|---|
value | The price as a decimal. |
Methods
Name | Description |
---|---|
OnAfterDeserialize() | Callback executed after Deserialization. Converts the raw data to a decimal and asigns it to value. |
OnBeforeSerialize() | Callback executed before Serialization. Converts value to raw data and to a double. |