Пример #1
0
    public void HideARScene()
    {
        AR_mode = false;

        SceneManager.SetActiveScene(SceneManager.GetSceneByName((playing_regular_game ? Constants.MAIN_GAME_SCENE : Constants.PENALTY_GAME_SCENE)));

        if (!xr_raycaster.HasPlacedField)
        {
            Time.timeScale = 1;

            game_field?.gameObject.SetActive(true);
            time_counter.EnableCounting();
        }
        else
        {
            game_field.ToOriginalPosition();
        }

        ToggleARObjects(false);
    }