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

An input button that loads another scene. Mainly for the samples. More...

Inheritance diagram for PlatformerPro.TouchButtonExit:
PlatformerPro.TouchButton PlatformerPro.ITouchButton

Public Attributes

string sceneToLoad
 The scene to load. More...
 
- Public Attributes inherited from PlatformerPro.TouchButton
bool touchMustStartInButton
 The touch must start in button. More...
 
Camera inputCamera
 Camera being used to draw the input UI. More...
 

Protected Member Functions

override void Released ()
 Called when this this instance. More...
 
- Protected Member Functions inherited from PlatformerPro.TouchButton
virtual void Init ()
 Init this instance. More...
 
virtual void UpdateFingerState ()
 Updates the state of the button based on fingers. More...
 

Additional Inherited Members

- Public Member Functions inherited from PlatformerPro.TouchButton
virtual void OnButtonStateChanged ()
 Raises the button state changed event. More...
 
- Protected Attributes inherited from PlatformerPro.TouchButton
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 inherited from PlatformerPro.TouchButton
virtual ButtonState ButtonState [get]
 Gets the state of the button. More...
 
- Properties inherited from PlatformerPro.ITouchButton
ButtonState ButtonState [get]
 Gets the state of the button. More...
 
- Events inherited from PlatformerPro.TouchButton
System.EventHandler< ButtonEventArgsButtonStateChanged
 Occurs when button state changes. Note that arguments are not a copy to avoid allocation. More...
 

Detailed Description

An input button that loads another scene. Mainly for the samples.

Member Function Documentation

◆ Released()

override void PlatformerPro.TouchButtonExit.Released ( )
protectedvirtual

Called when this this instance.

Reimplemented from PlatformerPro.TouchButton.

Member Data Documentation

◆ sceneToLoad

string PlatformerPro.TouchButtonExit.sceneToLoad

The scene to load.


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