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
No related merge requests found
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -8,6 +8,12 @@ public class Cutscene1Manager : MonoBehaviour ...@@ -8,6 +8,12 @@ public class Cutscene1Manager : MonoBehaviour
// Start is called before the first frame update // Start is called before the first frame update
void OnEnable() 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