private void NewMethod() { DefenderSpawner defenderSpawner = FindObjectOfType <DefenderSpawner>(); if (defenderSpawner.GetLifes() > 1) { defenderSpawner.LoseLife(); } else { FindObjectOfType <LevelController>().HandleLose(); //LoadGameOver(); } }