Ejemplo n.º 1
0
 void Start()
 {
     ball            = FindObjectOfType <basketball> ();
     initialposition = ball.transform.position;
     Time.timeScale  = 3;        // speed up the game by by 3 times.
     ball.GetComponent <Rigidbody>().useGravity = false;
     canswipe = true;
 }
Ejemplo n.º 2
0
 void Start()
 {
     basketball = FindObjectOfType <basketball> ();
     timer      = FindObjectOfType <timer> ();
 }