Beispiel #1
0
 private void Update()
 {
     if (Input.GetMouseButtonDown(0) && !isThrew && !PlayingSceneManager.gamePaused /*&& PlayingSceneManager.startFlag*/) //if we toched the screen and not threw it before and game has been started
     {
         if (!playingSceneManager.IsTouchingOnUI())                                                                       //if we are not cliking on an ui element
         {
             //PlayingSceneManager.startFlag = true;
             wallGenerator.UnPauseWallsMovement(); //to unPause generated walls movement if we pause it because of showing an ad
             ThrowBall();                          //throw the ball
         }
     }
 }