Beispiel #1
0
    public void ResetLevel()
    {
        buttonClickSound.Play();
        gameOverWinning.gameObject.SetActive(false);
        gameOverCrewDeath.gameObject.SetActive(false);
        gameOverHullBreach.gameObject.SetActive(false);

        ship.Reset();
        ship.transform.position = Vector3.zero;

        spaceStation.transform.position = Vector2.up.Rotate(Random.value * 360f) * 50f;

        asteroidSpawner.ResetAsteroids();
    }