Quantcast
Channel: Answers by "CallToAdventure"
Viewing all articles
Browse latest Browse all 48

Answer by CallToAdventure

$
0
0
format the code guys. :) static var tempBasketBall:Rigidbody; var ball:Rigidbody; var pos : Transform[]; var b1Parent:Transform; var canControl1 = true; function Start () { ball = Instantiate(tempBasketBall, pos[0].position, pos[0].rotation); ball.transform.parent = b1Parent; } ...... ...... function MakeBall(pos){ yield new WaitForSeconds(1); ball = Instantiate(tempBasketBall,pos.transform.position,pos.transform.rotation); ball.transform.parent = b1Parent; canControl1 = true; }

Viewing all articles
Browse latest Browse all 48

Trending Articles