// Update is called once per frame void Update() { if (ehp.Return() < 0) { SceneManager.LoadScene("Result"); } if (php.Returndeath() == true) { SceneManager.LoadScene("Defeat"); } }
// Update is called once per frame void Update() { //スペースキー if (Input.GetKeyDown(KeyCode.N)) { SceneManager.LoadScene("Result"); } if (cship.GetComponent <EnemyHp>().Return() < 0) { NextResult(); } if (php.Returndeath() == true) { NextDefeat(); } }