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