Example #1
0
 private void FindComponents()
 {
     _intro    = transform.Find("Intro").GetComponent <IntroWidget>();
     _clock    = transform.Find("Clock").GetComponent <ClockWidget>();
     _gameOver = transform.Find("GameOver").GetComponent <GameOverWidget>();
     _targets  = transform.Find("Targets").GetComponent <TargetWidget>();
     _flash    = GetComponent <Image>();
     _controls = transform.Find("Controls").GetComponent <Text>();
 }
Example #2
0
 private void FindComponents()
 {
     _intro = transform.Find("Intro").GetComponent<IntroWidget>();
     _clock = transform.Find("Clock").GetComponent<ClockWidget>();
     _gameOver = transform.Find("GameOver").GetComponent<GameOverWidget>();
     _targets = transform.Find("Targets").GetComponent<TargetWidget>();
     _flash = GetComponent<Image>();
     _controls = transform.Find("Controls").GetComponent<Text>();
 }