Ejemplo n.º 1
0
    private void NewMethod()
    {
        DefenderSpawner defenderSpawner = FindObjectOfType <DefenderSpawner>();

        if (defenderSpawner.GetLifes() > 1)
        {
            defenderSpawner.LoseLife();
        }
        else
        {
            FindObjectOfType <LevelController>().HandleLose();
            //LoadGameOver();
        }
    }