// Update is called once per frame void Update() { if (ehp.Return() < 0) { SceneManager.LoadScene("Result"); } if (php.Returndeath() == true) { SceneManager.LoadScene("Defeat"); } }