//The Game Over method - called when player gets 'hit' by obstacles void GameOver() { gameOver = true; positionX = positionX - .01f; myAudioSource.Stop(); myAudioSource.PlayOneShot(gameEnd); myScroller.GameOver(); }