Skip to content
Snippets Groups Projects
Commit f07f4d6f authored by VUILLEMIN THEO's avatar VUILLEMIN THEO
Browse files

intro

parent 07f863e0
Branches
Tags
No related merge requests found
......@@ -2,6 +2,7 @@
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Video;
using UnityEngine.SceneManagement;
public class IntroVideoPlayer : MonoBehaviour
{
......@@ -10,12 +11,13 @@ public class IntroVideoPlayer : MonoBehaviour
void Start()
{
Cursor.lockState = CursorLockMode.Locked;
_intro.loopPointReached += CheckOver;
}
void CheckOver(UnityEngine.Video.VideoPlayer vp)
{
Debug.Log("intro finie");
SceneManager.LoadScene("Scenes/scenet_test");
}
}
......@@ -7,7 +7,7 @@ public class mainMenu : MonoBehaviour
{
public void PlayGame()
{
SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex + 1);
SceneManager.LoadScene("Scenes/intro");
}
public void HowToPlay()
......
......@@ -8,6 +8,9 @@ EditorBuildSettings:
- enabled: 1
path: Assets/Scenes/menu.unity
guid: 20a776fdfb82d8140bdd02c84c1446ef
- enabled: 1
path: Assets/Scenes/intro.unity
guid: f365f0658ea65c943b4ea4f1ba2849be
- enabled: 1
path: Assets/Scenes/scenet_test.unity
guid: 212ba5be59061e542b86d68c3a0a1b80
......
......@@ -216,4 +216,5 @@ QualitySettings:
asyncUploadPersistentBuffer: 1
resolutionScalingFixedDPIFactor: 1
excludedTargetPlatforms: []
m_PerPlatformDefaultQuality: {}
m_PerPlatformDefaultQuality:
Standalone: 0
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