public void loseLife()
 {
     lives--;
     if (lives >= 0)
     {
         LifeBallScript lifeBallScript = lifeArr[lives].GetComponent <LifeBallScript>();
         lifeBallScript.Drop();
     }
     else
     {
         //explode all Bricks
         isGameOver = true;
         GameObject[] bricks = GameObject.FindGameObjectsWithTag("Brick");
         foreach (GameObject brick in bricks)
         {
             BrickScript brickScript = brick.GetComponent <BrickScript>();
             //brickScript.explode(false);
             brickScript.explode(true);
         }
         Destroy(paddle);
         //display game Over
         gameOverText.text = "GAME OVER";
         //Debug.Log("Game Over");
     }
 }
 void OnTriggerEnter(Collider otherCollider)
 {
     //Destroy Ball
     if (otherCollider.gameObject.name == "Ball(Clone)")
     {
         BallScript ballScript = otherCollider.GetComponent <BallScript>();
         ballScript.DieWithRespawn();
     }
     // Destroy Life
     if (otherCollider.gameObject.name == "LifeSphere(Clone)")
     {
         LifeBallScript lifeBallScript = otherCollider.GetComponent <LifeBallScript>();
         lifeBallScript.Die();
     }
     // Destroy exploded cube
     if (otherCollider.gameObject.name == "Cube(Clone)")
     {
         CubeScript cubeScript = otherCollider.GetComponent <CubeScript>();
         cubeScript.Die();
     }
 }