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