public void GameEnd() { _boatMgr = FindObjectOfType <BoatManager>(); float totalPoint = 0; for (int i = 0; i < _boatMgr.BoatArray.Length; i++) { totalPoint += _boatMgr.BoatArray[i].Count; } _score.treasurePoint = totalPoint; _score.aliveBoat = _boatMgr.getBoatAlive(); FindObjectOfType <FadeCtrl.FadeController>().StartFadeOut("Result"); //SceneManager.LoadScene("Result"); }