void Update() { if (!isMainSceneInBackground) { if (playerHealth.GetHealth() <= 0) { playerLives.LooseLive(); if (playerLives.IsNoLivesLeft()) { loadScene.DisplayGameOverScreen(); } else { ShowLivesThenReset(); } } if (player.GetComponent <InventoryManager>().GetCountOfQuestItems() >= 3 && grimsnap) { grimsnap.SetActive(true); } if (!grimsnap) { loadScene.DisplayWinScreen(); } } }