InvisibleButton
From Headbone Creative
Revision as of 19:21, 15 April 2013 by Tyson Joehler (Talk | contribs)
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.