*
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
var timeOut = 1.0;
|
||||
var detachChildren = false;
|
||||
|
||||
function Awake ()
|
||||
{
|
||||
Invoke ("DestroyNow", timeOut);
|
||||
}
|
||||
|
||||
function DestroyNow ()
|
||||
{
|
||||
if (detachChildren) {
|
||||
transform.DetachChildren ();
|
||||
}
|
||||
DestroyObject (gameObject);
|
||||
}
|
||||
Reference in New Issue
Block a user