C# Class TouchScript.TouchManagerInstance

Default implementation of ITouchManager.
Inheritance: UnityEngine.MonoBehaviour, ITouchManager
Show file Open project: TouchScript/TouchScript Class Usage Examples

Public Methods

Method Description
AddInput ( IInputSource input ) : bool
AddLayer ( TouchScript.Layers.TouchLayer layer, int index = -1, bool addIfExists = true ) : bool
CancelTouch ( int id ) : void
CancelTouch ( int id, bool @return ) : void
ChangeLayerIndex ( int at, int to ) : void
GetHitTarget ( Vector2 position ) : Transform
GetHitTarget ( Vector2 position, TouchScript.Hit.TouchHit &hit ) : bool
GetHitTarget ( Vector2 position, TouchScript.Hit.TouchHit &hit, TouchScript.Layers.TouchLayer &layer ) : bool
RemoveInput ( IInputSource input ) : bool
RemoveLayer ( TouchScript.Layers.TouchLayer layer ) : bool

Private Methods

Method Description
Awake ( ) : void
INTERNAL_BeginTouch ( Vector2 position, IInputSource input ) : TouchScript.TouchPoint
INTERNAL_BeginTouch ( Vector2 position, IInputSource input, TouchScript.Tags tags ) : TouchScript.TouchPoint
INTERNAL_CancelTouch ( int id ) : void
INTERNAL_EndTouch ( int id ) : void
INTERNAL_MoveTouch ( int id, Vector2 position ) : void
INTERNAL_UpdateTouch ( int id ) : void

Update touch without moving it

LevelWasLoaded ( Scene scene, LoadSceneMode mode ) : void
OnApplicationQuit ( ) : void
OnLevelWasLoaded ( int value ) : void
Update ( ) : void
addDebugFigureForTouch ( TouchScript.TouchPoint touch ) : void
createCameraLayer ( ) : void
createTouchInput ( ) : void
lateAwake ( ) : IEnumerator
removeDebugFigureForTouch ( TouchScript.TouchPoint touch ) : void
updateBegan ( List points ) : void
updateCancelled ( List points ) : void
updateDPI ( ) : void
updateEnded ( List points ) : void
updateInputs ( ) : void
updateLayers ( ) : void
updateTouches ( ) : void
updateUpdated ( List points ) : void

Method Details

AddInput() public method

public AddInput ( IInputSource input ) : bool
input IInputSource
return bool

AddLayer() public method

public AddLayer ( TouchScript.Layers.TouchLayer layer, int index = -1, bool addIfExists = true ) : bool
layer TouchScript.Layers.TouchLayer
index int
addIfExists bool
return bool

CancelTouch() public method

public CancelTouch ( int id ) : void
id int
return void

CancelTouch() public method

public CancelTouch ( int id, bool @return ) : void
id int
@return bool
return void

ChangeLayerIndex() public method

public ChangeLayerIndex ( int at, int to ) : void
at int
to int
return void

GetHitTarget() public method

public GetHitTarget ( Vector2 position ) : Transform
position Vector2
return UnityEngine.Transform

GetHitTarget() public method

public GetHitTarget ( Vector2 position, TouchScript.Hit.TouchHit &hit ) : bool
position Vector2
hit TouchScript.Hit.TouchHit
return bool

GetHitTarget() public method

public GetHitTarget ( Vector2 position, TouchScript.Hit.TouchHit &hit, TouchScript.Layers.TouchLayer &layer ) : bool
position Vector2
hit TouchScript.Hit.TouchHit
layer TouchScript.Layers.TouchLayer
return bool

RemoveInput() public method

public RemoveInput ( IInputSource input ) : bool
input IInputSource
return bool

RemoveLayer() public method

public RemoveLayer ( TouchScript.Layers.TouchLayer layer ) : bool
layer TouchScript.Layers.TouchLayer
return bool