Difference between revisions of "SendMessageAfterDelay"

From Headbone Creative
Jump to: navigation, search
(Initial page, includes API information and categories)
 

Latest revision as of 18:40, 20 April 2013

This sends a message to a target object after a certain amount of time has passed.

A common usage of this script would be to delay for a few seconds while showing an additional splash screen before sending a message to LevelLoader to load the next level.

Contents

[edit] Public Variables

[edit] target : GameObject

This is the object the message is sent to. If not set in the editor, the message will be sent to the object to which this script is attached.

[edit] message : string

This is the message to send. It is sent using Unity's built-in SendMessage function.

[edit] data : object

This is the data to send with the object, if any.

[edit] secondsToDelay : float

This is how many seconds to delay before sending the message.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox