Platformer Pro  2.3.2
A platform game kit for Unity.
PlatformerPro.PurchaseFailEventArgs Class Reference

Item event arguments. More...

Inheritance diagram for PlatformerPro.PurchaseFailEventArgs:
PlatformerPro.ItemEventArgs PlatformerPro.CharacterEventArgs

Public Member Functions

 PurchaseFailEventArgs (string type, Character character, PurchaseFailReason reason)
 Initializes a new instance of the PlatformerPro.PurchaseFailEventArgs class assuming the amount = 1. More...
 
- Public Member Functions inherited from PlatformerPro.ItemEventArgs
 ItemEventArgs (string type, Character character)
 Initializes a new instance of the PlatformerPro.ItemEventArgs class assuming the amount = 1. More...
 
 ItemEventArgs (string type, int amount, Character character)
 Initializes a new instance of the PlatformerPro.ItemEventArgs class. More...
 
- Public Member Functions inherited from PlatformerPro.CharacterEventArgs
 CharacterEventArgs ()
 Initializes a new instance of the PlatformerPro.CharacterEventArgs class. More...
 
 CharacterEventArgs (Character character)
 Initializes a new instance of the PlatformerPro.CharacterEventArgs class. More...
 
 CharacterEventArgs (Character character, int playerId)
 Initializes a new instance of the PlatformerPro.CharacterEventArgs class. More...
 
void Update (Character character)
 Updates the event args with the given character More...
 

Properties

PurchaseFailReason Reason [get, protected set]
 Gets the reason purchase failed. More...
 
- Properties inherited from PlatformerPro.ItemEventArgs
string Type [get, protected set]
 Gets the item type. More...
 
virtual int Amount [get, protected set]
 Gets the number of items collected. More...
 
virtual int IntValue [get, protected set]
 Gets or sets the int value. More...
 
- Properties inherited from PlatformerPro.CharacterEventArgs
Character Character [get, protected set]
 Gets or sets the character. More...
 
int PlayerId [get, protected set]
 What player number is this? More...
 

Detailed Description

Item event arguments.

Constructor & Destructor Documentation

◆ PurchaseFailEventArgs()

PlatformerPro.PurchaseFailEventArgs.PurchaseFailEventArgs ( string  type,
Character  character,
PurchaseFailReason  reason 
)

Initializes a new instance of the PlatformerPro.PurchaseFailEventArgs class assuming the amount = 1.

Parameters
typeType.
characterCharacter.
reasonWhy the purchase failed.

Property Documentation

◆ Reason

PurchaseFailReason PlatformerPro.PurchaseFailEventArgs.Reason
getprotected set

Gets the reason purchase failed.


The documentation for this class was generated from the following file: