C# Class InputToEvent, PaperCowboys

Utility component to forward mouse or touch input to clicked gameobjects. Calls OnPress, OnClick and OnRelease methods on "first" game object.
Inheritance: MonoBehaviour
Mostrar archivo Open project: Gamieon/PaperCowboys Class Usage Examples

Public Properties

Property Type Description
DetectPointedAtGameObject bool
inputHitPos Vector3

Private Methods

Method Description
Press ( Vector2 screenPos ) : void
RaycastObject ( Vector2 screenPos ) : GameObject
Release ( Vector2 screenPos ) : void
Update ( ) : void

Property Details

DetectPointedAtGameObject public_oe property

public bool DetectPointedAtGameObject
return bool

inputHitPos public_oe static_oe property

public static Vector3 inputHitPos
return Vector3