![]() |
Platformer Pro
2.3.2
A platform game kit for Unity.
|
An input button typically used for mobile devices. More...
Public Member Functions | |
virtual void | OnButtonStateChanged () |
Raises the button state changed event. More... | |
Public Attributes | |
bool | touchMustStartInButton |
The touch must start in button. More... | |
Camera | inputCamera |
Camera being used to draw the input UI. More... | |
Protected Member Functions | |
virtual void | Init () |
Init this instance. More... | |
virtual void | UpdateFingerState () |
Updates the state of the button based on fingers. More... | |
virtual void | Released () |
Called when this this instance. More... | |
Protected Attributes | |
ButtonState | buttonState = ButtonState.NONE |
The last state. More... | |
int | fingerId = -1 |
If this button was down or held which finger was doing the holding. More... | |
Collider2D | myCollider |
Cached collider for this button. More... | |
ButtonEventArgs | buttonEventArgs |
A cached button event args that we update so we don't need to allocate. More... | |
Properties | |
virtual ButtonState | ButtonState [get] |
Gets the state of the button. More... | |
![]() | |
ButtonState | ButtonState [get] |
Gets the state of the button. More... | |
Events | |
System.EventHandler< ButtonEventArgs > | ButtonStateChanged |
Occurs when button state changes. Note that arguments are not a copy to avoid allocation. More... | |
An input button typically used for mobile devices.
|
protectedvirtual |
Init this instance.
|
virtual |
Raises the button state changed event.
|
protectedvirtual |
Called when this this instance.
Reimplemented in PlatformerPro.TouchButtonExit.
|
protectedvirtual |
Updates the state of the button based on fingers.
|
protected |
A cached button event args that we update so we don't need to allocate.
|
protected |
The last state.
|
protected |
If this button was down or held which finger was doing the holding.
Camera PlatformerPro.TouchButton.inputCamera |
Camera being used to draw the input UI.
|
protected |
Cached collider for this button.
bool PlatformerPro.TouchButton.touchMustStartInButton |
The touch must start in button.
|
get |
Gets the state of the button.
System.EventHandler<ButtonEventArgs> PlatformerPro.TouchButton.ButtonStateChanged |
Occurs when button state changes. Note that arguments are not a copy to avoid allocation.