Quantcast
Channel: Answers for "Co Routine"
Viewing all articles
Browse latest Browse all 4

Answer by fafase

$
0
0
pragma strict var bluefruit : GameObject; var numberOfFruits : int=20; function Start () { InvokeRepeating("GenerateFruits",0.01f,3.0f); } function GenerateFruits() { var fruit=Instantiate(bluefruit,position,rotation); Destroy(fruit,10.0f) if(--numberOfFruit

Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images