C# Class TouchScript.TouchManager

Inheritance: UnityEngine.MonoBehaviour
Exibir arquivo Open project: TouchScript/TouchScript Class Usage Examples

Public Properties

Property Type Description
INVALID_POSITION Vector2
VERSION System.Version

Public Methods

Method Description
IsInvalidPosition ( Vector2 position ) : bool

Determines whether a Vector2 represents an invalid position, i.e. if it is equal to INVALID_POSITION.

Private Methods

Method Description
Awake ( ) : void
OnDisable ( ) : void
OnEnable ( ) : void
frameFinishedHandler ( object sender, EventArgs e ) : void
frameStartedHandler ( object sender, EventArgs e ) : void
removeSubscriptions ( ) : void
touchesBeganHandler ( object sender, TouchEventArgs e ) : void
touchesCancelledHandler ( object sender, TouchEventArgs e ) : void
touchesEndedHandler ( object sender, TouchEventArgs e ) : void
touchesMovedHandler ( object sender, TouchEventArgs e ) : void
updateSubscription ( ) : void

Method Details

IsInvalidPosition() public static method

Determines whether a Vector2 represents an invalid position, i.e. if it is equal to INVALID_POSITION.
public static IsInvalidPosition ( Vector2 position ) : bool
position Vector2 Screen position.
return bool

Property Details

INVALID_POSITION public_oe static_oe property

The value used to represent an unknown state of a screen position. Use TouchManager.IsInvalidPosition to check if a point has unknown value.
public static Vector2 INVALID_POSITION
return Vector2

VERSION public_oe static_oe property

TouchScript version.
public static Version,System VERSION
return System.Version