Beispiel #1
0
    public void StartGame()
    {
        platform.SetActive(true);
        lava.transform.position = new Vector3(0f, -21.4835f, 0f);
        ObstacleManager.DestroyAllObstacles();

        stateManager.SetState("Game State", false);
        playerBehavior.inGame = true;
        playerBehavior.Respawn();
        cameraBehavior.ResetCamera();

        GameObject.FindObjectOfType <ObstacleManager>().yNextPos = 0f;
    }