Ejemplo n.º 1
0
    void Repeat()
    {
        points = 0;
        foreach (GameObject go in GameObject.FindGameObjectsWithTag("Enemy"))
        {
            Destroy(go);
        }
        foreach (GameObject go in GameObject.FindGameObjectsWithTag("Bullet"))
        {
            Destroy(go);
        }

        player.transform.position = playerStartpos.position;
        pc.Respawn();

        Time.timeScale = 1;
        end            = false;
    }