Exemplo n.º 1
0
    IEnumerator WatchInARCor()
    {
        btn_Back_To_List.SetActive(false);
        btn_Watch_In_AR.GetComponent <Animation>().Play();

        PlayerPrefs.SetString("modelID", modelID);
        string savePathModel = Path.Combine(Application.persistentDataPath, "data");

        savePathModel = Path.Combine(savePathModel, "Model" + modelID);
        savePathModel = Path.Combine(savePathModel, Path.GetFileName(modelLink));
        PlayerPrefs.SetString("modelLink" + modelID, savePathModel);
        PlayerPrefs.SetInt("modelTexture" + modelID, modelTexture.Length);

        //btn_Watch_In_AR.GetComponent<Animation>().Stop();
        //SceneManager.LoadScene("Main");
        _gameLoading.btnMain();
        yield return(null);
    }