Exemple #1
0
 public void JumperCrashed()
 {
     if (!livesController.RemoveLife())
     {
         GameOver();
     }
 }
Exemple #2
0
 private void CherryDead()
 {
     if (!livesController.RemoveLife())
     {
         GameOver();
     }
 }
 //To check whether lives are enough to continue
 public void LoseOneLife()
 {
     if (!livesController.RemoveLife())
     {
         gameCointinue = false;
         GameOver();
     }
 }
 //metod om spelaren blir träffad ta bort ett liv.
 public void PlayerHited()
 {
     if (!livesController.RemoveLife())
     {
         GameOver();
         FindObjectOfType <PersistentManagerScript>().GameOverSign();
     }
 }
Exemple #5
0
 public void JumperCrashed()
 {
     if (!livesController.RemoveLife())
     {
         SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex + 1);
         Debug.Log("GAME OVER!");
     }
 }
 private void JumperCrashed()
 {
     if (!livesController.RemoveLife())
     {
         jumperSpawner.Stop();
         Debug.Log("Game Is Over");
         GameOver();
     }
 }
    public void JumperCrashed()
    {
        Debug.Log("GM die");
        if (!livesController.RemoveLife())
        {
            Debug.Log("Game Over");

            jumperSpawner.Stop();
        }
    }
Exemple #8
0
    private void OnCollisionEnter2D(Collision2D collision)
    {
        if (collision.gameObject.tag == "Bottom")
        {
            deathAudio.Play();

            if (!gameManager.endless)
            {
                livesController.RemoveLife();
            }

            paddleController.StartCoroutine("SpawnNewBall");
            Destroy(transform.parent.gameObject);
        }
        else
        {
            collisionAudio.Play();
        }
    }