mirror of
https://github.com/imperialsushi/gutterball-3.git
synced 2025-06-15 05:07:42 +00:00
15 lines
No EOL
216 B
JavaScript
15 lines
No EOL
216 B
JavaScript
var timeOut = 1.0;
|
|
var detachChildren = false;
|
|
|
|
function Awake ()
|
|
{
|
|
Invoke ("DestroyNow", timeOut);
|
|
}
|
|
|
|
function DestroyNow ()
|
|
{
|
|
if (detachChildren) {
|
|
transform.DetachChildren ();
|
|
}
|
|
DestroyObject (gameObject);
|
|
} |