Skip to content
Snippets Groups Projects
Commit 278796ff authored by Nat10k's avatar Nat10k
Browse files

fix : load AR after cutscene 1 if selected

parent 35139af0
Branches
Tags
No related merge requests found
This diff is collapsed.
......@@ -8,6 +8,12 @@ public class Cutscene1Manager : MonoBehaviour
// Start is called before the first frame update
void OnEnable()
{
SceneManager.LoadScene("Main", LoadSceneMode.Single);
if (PlayerPrefs.GetInt("isAR", 0) != 0)
{
SceneManager.LoadScene("AR", LoadSceneMode.Single);
} else
{
SceneManager.LoadScene("Main", LoadSceneMode.Single);
}
}
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment