InvisibleButton
From Headbone Creative
This script implements a simple button that has no display, but can be tapped in order to send a message to another object.
Contents |
Public Variables
tapsRequired : int
This is the number of taps required before the message will be sent.
target : GameObject
This is the object to which the message will be sent.
message : string
This is the message to send. It will be sent using GameObject.SendMessage to the target object.
tapTime : float
This is the maximum time between taps, in seconds.
viewCamera : Camera
This is the camera that views the scene in which this button resides. If this is not set, it will default to the main camera.