Exemplo n.º 1
0
    public void ShowARScene()
    {
        AR_mode = true;

        SceneManager.SetActiveScene(SceneManager.GetSceneByName(Constants.AR_SCENE));

        ToggleARObjects(true);

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

            game_field?.gameObject.SetActive(false);
            time_counter.ForceDisableCounting();
        }
        else
        {
            game_field.ToARPosition();
        }
    }