How do I loop through and remove Instantiate Gameobject clones?
What I have for making Gameobjects. But how do I loop through these and remove?
var prefab: GameObject;
if ( prefab ) {
for(var i :int = 0; i == 0; i++){
Instantiate(prefab, CorrespondingGroundHit.point, Quaternion.identity );
}
}
↧