Esempio n. 1
0
 private void Start()
 {
     _finishGameLabel      = GetComponentInChildren <Text>();
     _finishGameLabel.text = String.Empty;
     _healthBar            = GetComponentInChildren <Image>();
     _healthBar.fillAmount = 1.0f;
     _restartButton        = GetComponentInChildren <RestartButton>();
 }
Esempio n. 2
0
 private void Start()
 {
     _winImage = GetComponent <Image>();
     _button   = FindObjectOfType <RestartButton>();
 }