Quantcast
Channel: Answers for "Basketball Game: Need Help!"
Browsing latest articles
Browse All 4 View Live

Answer by FLASHDENMARK

var ballPrefab : GameObject; static var BallShot = false; function Update () { // Shooting Ball if(Input.GetMouseButtonUp(0)){ if(BallShot == false){ var Basketballs : GameObject =...

View Article



Answer by SisterKy

but wait a moment... what's the var-keyword doing in front of BallShot = true;? You already define BallShot as static var at the beginning of the script. (I'm confused you don't have a...

View Article
Browsing latest articles
Browse All 4 View Live




Latest Images