heres the layout of a javascript:
var Thing : Transform;
function Update()
{
if(Thing.name == "Thing")
{
Destory();
}
else
{
Destroy(Thing.gameObject);
}
}
if you follow the structure it can help you
Trending Articles
More Pages to Explore .....