Example #1
0
    public void RestartGame()
    {
        balanceViewerStartWindow.text            = "$: " + mainDataScript.Balance;
        playerNextPosition.transform.position    = startPlayerPosition;
        playerCurrentPosition.transform.position = startPlayerPosition;

        gameStatusEnum.gameStatus = GameStatus.StartMenu;

        //Debug.Log("before restart score");
        scoreCountScript.RestartScore();
        //Debug.Log("Try fing SkinShell");
        GameObject.Find("SkinShell").GetComponent <SpawnRoadManager>().DeactivateAllPooledRoads();


        //Debug.Log("Try restartSpawn");
        barrierStartSpawnScript.RestartSpawn();
    }