void Update() { if (Input.GetMouseButton(0) && GameManager.gameOver == false) { if (GameManager.gameHasStarted == false) { rb.gravityScale = 0.8f; Flap(); obstacleSpawner.InstantiateObstacles(); gameManager.GameHasStarted(); } else { Flap(); } } BirdRotation(); }