// Start is called before the first frame update void Start() { timeText = GetComponent <Text>(); bs = gameController.GetComponent <basketballScore>(); barAnimator = barAnimatorObj.GetComponent <Animator>(); gameBkbOver = true; ms = pole.GetComponent <moveLeftRight>(); ms.amplitude = 0; }
// Start is called before the first frame update void Start() { targetAnimator1 = target1.GetComponent <Animator>(); targetAnimator2 = target2.GetComponent <Animator>(); targetAnimator3 = target3.GetComponent <Animator>(); targetAnimator4 = target4.GetComponent <Animator>(); targetAnimator5 = target5.GetComponent <Animator>(); targetAnimator6 = target6.GetComponent <Animator>(); countScript = countDownTimerObj.GetComponent <countdownTimer>(); moveScript = movingTarget.GetComponent <moveLeftRight>(); scoreText = scoreTextObj.GetComponent <Text>(); highScoreText = highScoreTextObj.GetComponent <Text>(); highScore = PlayerPrefs.GetInt("highscore", highScore); highScoreText.text = "High Score: " + highScore.ToString(); }