![]() |
Platformer Pro
2.3.2
A platform game kit for Unity.
|
A button on an action bar that activates/deactivates. More...
Protected Member Functions | |
override void | DoDestroy () |
Do the destroy actions (remove event listeners). More... | |
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... | |
IEnumerator | GetCharacterAfterWait () |
Waits a frame then gets character reference. More... | |
override void | HandleCharacterLoaded (object sender, CharacterEventArgs e) |
Handles the character being loaded. More... | |
override void | DoPointerClick () |
Handles the click event. More... | |
![]() | |
virtual void | OnActivated () |
Raises the activated event. 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 | |
ActivationGroup | group |
The activation group. More... | |
string | groupName |
The name of the activation group. More... | |
string | activationItemId |
The activation item id. 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 that activates/deactivates.
|
protectedvirtual |
Do the destroy actions (remove event listeners).
Reimplemented from PlatformerPro.UIActionBarButton.
|
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.
|
protected |
Waits a frame then gets character reference.
|
protectedvirtual |
Handles the character being loaded.
sender | Sender. |
e | E. |
Reimplemented from PlatformerPro.UIActionBarButton.
|
protected |
The activation item id.
|
protected |
The activation group.
|
protected |
The name of the activation group.
|
get |
Gets the character reference.
The character.