private void Update() { if (Input.GetKeyDown(KeyCode.Alpha1)) { LoadLevel(1); } if (Input.GetKeyDown(KeyCode.Alpha2)) { LoadLevel(2); } if (Input.GetKeyDown(KeyCode.Alpha3)) { LoadLevel(3); } if (Input.GetKeyDown(KeyCode.Alpha4)) { LoadLevel(4); } if (Input.GetKeyDown(KeyCode.Alpha5)) { LoadLevel(5); } if (Input.GetKeyDown(KeyCode.Alpha6)) { LoadLevel(6); } PlayerLife life = FindObjectOfType <PlayerLife>(); if (life) { if (life.PlayerGetLife() <= 0) { LoseScreenBehavior audio1 = FindObjectOfType <LoseScreenBehavior>(); audio1.Lose(); } } }