コード例 #1
0
    public void GameRestart()
    {
        //SceneManager.LoadScene(0);
        pc.gameObject.transform.position = Vector3.zero;
        pc.gameObject.SetActive(true);
        Score = 0;
        ui.setScore(Score);

        pc.setLife();
        ui.hideGameOver();
        hazard = StartCoroutine(Hazards());
        spawn  = StartCoroutine(Spawn());
        for (int i = 0; i < BGs.Length; i++)
        {
            BGs[i].StartScroll();
        }
        RemoveAll();
    }