![]() |
Platformer Pro
2.3.2
A platform game kit for Unity.
|
A button on an action bar. Can be used for switching wepaons, consuming items, or just as a standard ActionButton. More...
Public Attributes | |
BasicAttacks | attack |
string | attackName |
Protected Member Functions | |
override void | GetCharacter () |
Gets a character ref or defers to loader event. Here we wait an extra frame to give group time to load. More... | |
override void | HandleCharacterLoaded (object sender, CharacterEventArgs e) |
Handles the character being loaded. More... | |
virtual void | UpdateFromAttackData () |
override void | DoPointerClick () |
Handles the click event. More... | |
![]() | |
virtual void | OnActivated () |
Raises the activated event. More... | |
virtual void | DoDestroy () |
Do the destroy actions (remove event listeners). More... | |
virtual void | Init () |
Init this instance. More... | |
virtual void | GetItemManager () |
Get item manager reference and register listerns. More... | |
virtual void | UpdateItemCount () |
virtual void | HandleItemChanged (object sender, ItemEventArgs e) |
Protected Attributes | |
int | attackIndex = -1 |
Index of the attack. More... | |
![]() | |
GameObject | disabledContent |
Content to show when this object is disabled. More... | |
GameObject | enabledContent |
Content to show when this object is enabled. More... | |
GameObject | activeContent |
Content to show when this object is active. More... | |
Text | itemCountText |
text for item count if this button is connected to an item. More... | |
Character | character |
Character reference, looked up using CharacterLoader (falling back to Find) if null. More... | |
PlatformerProGameManager | characterLoader |
The character loader. More... | |
bool | allowDeactivate |
int | actionButton |
bool | displayOnly |
bool | canClickWhenPaused |
ItemManager | itemManager |
Cached item manager reference More... | |
string | itemId |
Cached item ID More... | |
bool | isActive |
Track if we are active or not. More... | |
Properties | |
override Character | Character [get] |
Gets the character reference. More... | |
![]() | |
virtual Character | Character [get] |
Gets the character reference. More... | |
Additional Inherited Members | |
![]() | |
virtual void | Disable () |
Call to disable intance. More... | |
virtual void | Enable () |
call to enable instance. More... | |
virtual void | Activate () |
Call to activate instance. More... | |
virtual void | Deactivate () |
Call to activate instance. More... | |
virtual void | OnPointerClick (PointerEventData eventData) |
virtual void | OnPointerDown (PointerEventData eventData) |
![]() | |
System.EventHandler< System.EventArgs > | Activated |
Occurs when button pressed/clicked and state is ready for activation. More... | |
A button on an action bar. Can be used for switching wepaons, consuming items, or just as a standard ActionButton.
|
protectedvirtual |
Handles the click event.
Reimplemented from PlatformerPro.UIActionBarButton.
|
protectedvirtual |
Gets a character ref or defers to loader event. Here we wait an extra frame to give group time to load.
Reimplemented from PlatformerPro.UIActionBarButton.
|
protectedvirtual |
Handles the character being loaded.
sender | Sender. |
e | E. |
Reimplemented from PlatformerPro.UIActionBarButton.
|
protectedvirtual |
BasicAttacks PlatformerPro.UIActionBarButton_Attack.attack |
|
protected |
Index of the attack.
string PlatformerPro.UIActionBarButton_Attack.attackName |
|
get |
Gets the character reference.
The character.