C# Class LeopotamGroup.Gui.Common.GuiEventReceiver

Touch event receiver.
Inheritance: LeopotamGroup.Common.MonoBehaviourBase
Exibir arquivo Open project: Leopotam/LeopotamGroupLibraryUnity Class Usage Examples

Public Properties

Property Type Description
OnClick OnGuiTouchEventHandler
OnDrag OnGuiTouchEventHandler
OnPress OnGuiTouchEventHandler

Public Methods

Method Description
IsPointInside ( float x, float y ) : bool

Check if 2d point placed inside current touch zone.

LateUpdate ( ) : void
RaiseClickEvent ( GuiTouchEventArg tea ) : void

Raise OnClick event manually.

RaiseDragEvent ( GuiTouchEventArg tea ) : void

Raise OnDrag event manually.

RaisePressEvent ( GuiTouchEventArg tea ) : void

Raise OnPress event manually.

ResetPanel ( ) : void

Force reset cached parent panel reference.

Protected Methods

Method Description
OnDisable ( ) : void
OnEnable ( ) : void

Method Details

IsPointInside() public method

Check if 2d point placed inside current touch zone.
public IsPointInside ( float x, float y ) : bool
x float X coordinate of point.
y float Y coordinate of point.
return bool

LateUpdate() public method

public LateUpdate ( ) : void
return void

OnDisable() protected method

protected OnDisable ( ) : void
return void

OnEnable() protected method

protected OnEnable ( ) : void
return void

RaiseClickEvent() public method

Raise OnClick event manually.
public RaiseClickEvent ( GuiTouchEventArg tea ) : void
tea GuiTouchEventArg Tea.
return void

RaiseDragEvent() public method

Raise OnDrag event manually.
public RaiseDragEvent ( GuiTouchEventArg tea ) : void
tea GuiTouchEventArg Tea.
return void

RaisePressEvent() public method

Raise OnPress event manually.
public RaisePressEvent ( GuiTouchEventArg tea ) : void
tea GuiTouchEventArg Tea.
return void

ResetPanel() public method

Force reset cached parent panel reference.
public ResetPanel ( ) : void
return void

Property Details

OnClick public_oe property

Will be raised on click event.
public OnGuiTouchEventHandler OnClick
return OnGuiTouchEventHandler

OnDrag public_oe property

Will be raised on drag event.
public OnGuiTouchEventHandler OnDrag
return OnGuiTouchEventHandler

OnPress public_oe property

Will be raised on press / release event.
public OnGuiTouchEventHandler OnPress
return OnGuiTouchEventHandler