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; }
void Start() { basketball = FindObjectOfType <basketball> (); timer = FindObjectOfType <timer> (); }