Exemplo n.º 1
0
 private void Salir()
 {
     if (ScoreController.Instance.Wave < 3)
     {
         SetLives(1);
     }
     else if (ScoreController.Instance.Wave < 5)
     {
         SetLives((int)Random.Range(1, 2.1f));
     }
     else if (ScoreController.Instance.Wave < 7)
     {
         SetLives((int)Random.Range(1, 3.1f));
     }
     else
     {
         SetLives((int)Random.Range(1, 3.9f));
     }
     SoundController.Instance.PlaySound(SoundController.Sounds.EXITCAVE);
     image.sprite    = normal;
     isMoving        = true;
     auxMove         = 0;
     actualCodReturn = ++codReturn;
     if (rocas.IsBlock)
     {
         rocas.DestroyBlock();
     }
 }