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