Beispiel #1
0
    public void SetAllFirstCheckPoint()
    {
        player.gameObject.SetActive(true);
        player.transform.position = checkPoints[0].position;
        player.transform.rotation = checkPoints[0].rotation;
        camera.transform.position = player.transform.position + new Vector3(1f, 0.75f, -15f);

        player.SetIteration(0f);
        camera.SetIteration(0f);

        for (int i = 0; i < enemies.Length; i++)
        {
            enemies[i].position = enemiesPlaces[i].position;
            enemies[i].rotation = enemiesPlaces[i].rotation;
            enemies[i].gameObject.SetActive(true);
        }

        foreach (var trigger in triggers)
        {
            trigger.SetActive(true);
        }

        moneyCounter.LevelEarnedMoneyToNull();
    }