|
it is supposed to creat an object at "dp" but its not working any help.
static var total:float =0; var savedtime =0; function Update () { var seconds: int = Time.time; var oddeven = (seconds% 2);
function make(seconds){ if(seconds !=savedtime) { if(total <=4){ var bullit = Instantiate(monster, GameObject.Find("dp").transform.position* Time.deltaTime, Quaternion.identity) ; total +=1; savedtime = seconds; } } }
(comments are locked)
|
|
If you want to instantiate the object at the sameplace, just use GameObject.Find("dp").transform.position, take out the * Time.deltaTime
(comments are locked)
|
