// obje kacirildiginda cagirilir public void HealthLose() { health--; star[health].SetActive(false); // tum canlar bittiginde Game Over olmasini saglar if (health <= 0) { Destroy(GameObject.Find("Spawner")); gameManager.SetActive(false); gameOverPanel.SetActive(true); gameOverUI = FindObjectOfType <GameOverUI>(); gameOverUI.SetScore(score); score = 0; health = star.Length; gameObject.SetActive(false); } }