|
How do i destroy object after a delay?
(comments are locked)
|
|
It's easy: Define a function like this: Call this function when you want to destroy it.
(comments are locked)
|
|
var destroyTime = 5; function Update () { Destroy(gameObject, destroyTime); } This. The
Feb 01 '12 at 08:52 AM
asafsitner
(comments are locked)
|
|
All is there http://unity3d.com/support/documentation/ScriptReference/index.Coroutines_26_Yield.html Hope that helps
(comments are locked)
|
Add this to a javascript, set the time in Seconds (Use the var). And the gameobject will be destroyed after in this script 10 seconds
(comments are locked)
|

Thanks All!
@JBoy: don't post comments as answers. Answers should exclusively be used to answer the question. Read the FAQs for more information.
I've converted your answer into a comment.