//Occurs when player dies, disables player script and sets up end state public void GameOver() { player.enabled = false; gameObject.SetActive(false); endGame.Load(score, timer, coinsCollected); }