forked from tanus786/CP-Codes-HackOctober-Fest-2023
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SceneLoader.cs
44 lines (42 loc) · 1.04 KB
/
SceneLoader.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class SceneLoader : MonoBehaviour
{
public void LoadNextScene(){
int currentSceneIndex =SceneManager.GetActiveScene().buildIndex;
SceneManager.LoadScene(currentSceneIndex +1);
}
public void LoadStartScene(){
SceneManager.LoadScene(0);
}
public void MainMenu()
{
SceneManager.LoadScene(sceneName: "Main Menu");
}
public void OprnWVR()
{
SceneManager.LoadScene(sceneName: "Open VR");
}
public void OprnWNVR()
{
SceneManager.LoadScene(sceneName: "Open NVR");
}
public void CarShowVR()
{
SceneManager.LoadScene(sceneName: "Car SRVR");
}
public void CarShowNVR()
{
SceneManager.LoadScene(sceneName: "Car SRNVR");
}
public void RestaurantVR()
{
SceneManager.LoadScene(sceneName: "Resturant VR");
}
public void RestaurantNVR()
{
SceneManager.LoadScene(sceneName: "Resturant NVR");
}
}