Quantcast
Channel: Questions in topic: "clone"
Viewing all articles
Browse latest Browse all 508

clonning again and again after sometime

$
0
0
void Update () { curspwntime -= 1 * Time.deltaTime; if (curspwntime <= 0) { instantiatedobj=Instantiate(geek1, new Vector3(-35.86f,6.3f,1.43f), Quaternion.Euler(0,90,0)); curspwntime = spawntime; } the problem is after first tme it makes clone of clone .but i only want one clone after every 5 seconds and destroy OnCollisionEnter also doesnot work for clonned objects i had also used corroutines. thanks in advance.

Viewing all articles
Browse latest Browse all 508

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>