SendMessageAfterDelay
From Headbone Creative
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 |
Public Variables
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.
message : string
This is the message to send. It is sent using Unity's built-in SendMessage function.
data : object
This is the data to send with the object, if any.
secondsToDelay : float
This is how many seconds to delay before sending the message.