Exemplo n.º 1
0
    void NewGame()
    {
        isPlaying = true;
        mainMenu.SetActive(false);
        gamePoints = 0;
        spawner.StartSpawn(soldier.transform.position);

        StartCoroutine(soldier.Shot());
        StartCoroutine(spawner.TimeCoroutine());
    }