Tuesday, June 28, 2011

Instantiating Objects from an empty Game object



here is the script for the idea=========================================================================================================================================================================================================================

var object : Transform;




function Update () {

var theCloned : Transform;
theCloned = Instantiate(object,
transform.position, transform.rotation);




}
=============================================================================================================================================================================================================================

But here it is instantiating many Cubes that what we will change in the next script


No comments:

Post a Comment