C# 클래스 TouchScript.InputSources.InputHandlers.TouchHandler

Unity touch handling implementation which can be embedded and controlled from other (input) classes.
상속: IDisposable
파일 보기 프로젝트 열기: DRMold/HungryHungryTetris 1 사용 예제들

공개 메소드들

메소드 설명
CancelTouch ( TouchPoint touch, bool @return ) : bool
Dispose ( ) : void
TouchHandler ( Tags tags, Func beginTouch, Vector2>.Action moveTouch, Action endTouch, Action cancelTouch ) : System

Initializes a new instance of the TouchHandler class.

Update ( ) : void

Updates this instance.

비공개 메소드들

메소드 설명
internalBeginTouch ( Vector2 position ) : TouchPoint
internalCancelTouch ( int id ) : void
internalEndTouch ( int id ) : void

메소드 상세

CancelTouch() 공개 메소드

public CancelTouch ( TouchPoint touch, bool @return ) : bool
touch TouchPoint
@return bool
리턴 bool

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

TouchHandler() 공개 메소드

Initializes a new instance of the TouchHandler class.
public TouchHandler ( Tags tags, Func beginTouch, Vector2>.Action moveTouch, Action endTouch, Action cancelTouch ) : System
tags Tags Tags to add to touches.
beginTouch Func A function called when a new touch is detected. As this function must accept a Vector2 position of the new touch and return an instance of .
moveTouch Vector2>.Action A function called when a touch is moved. As this function must accept an int id and a Vector2 position.
endTouch Action A function called when a touch is lifted off. As this function must accept an int id.
cancelTouch Action A function called when a touch is cancelled. As this function must accept an int id.
리턴 System

Update() 공개 메소드

Updates this instance.
public Update ( ) : void
리턴 void