// Start is called before the first frame update void Start() { ts = gameController.GetComponent <targetScript>(); audioSound = gameController.GetComponent <AudioSource>(); countScript = countDownScriptObj.GetComponent <countdownTimer>(); bs = gameController.GetComponent <balanceScript>(); }
// 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(); }