Example #1
0
        //ゲームオーバー:カメラを止める+ゲームオーバーの画像と音
        public void GameOver()
        {
            CameraMoveScript.CameraCanMove = 0;
            GameOverImg.gameObject.SetActive(true);
            SystemSEscript systemSE = this.GetComponent <SystemSEscript> ();

            systemSE.GameOverSound();
            Invoke("Restart", 6.0f);
        }
    void GameOver()
    {
        GodTouches.PlayerMoveScript.playerYspeed = 0;
        this.gameObject.SetActive(false);
        GameOverImg.gameObject.SetActive(true);
        SystemSEscript systemSE = Maincamera.GetComponent <SystemSEscript>();

        systemSE.GameOverSound();
    }