AR Design
UBC EML collab with UBC SALA - visualizing IoT data in AR
LevelManager.cs
Go to the documentation of this file.
1
// Copyright (c) Microsoft Corporation. All rights reserved.
2
// Licensed under the MIT License. See LICENSE in the project root for license information.
3
4
using
UnityEngine
;
5
using
UnityEngine
.SceneManagement;
6
7
namespace
HoloToolkit
.Examples
8
{
9
public
class
LevelManager
: MonoBehaviour
10
{
11
public
void
LoadNextScene
()
12
{
13
int
sceneIndex = SceneManager.GetActiveScene().buildIndex + 1;
14
if
(sceneIndex >= SceneManager.sceneCountInBuildSettings)
15
{
16
sceneIndex = 0;
17
}
18
19
SceneManager.LoadScene(sceneIndex);
20
}
21
}
22
}
HoloToolkit.Examples.LevelManager
Definition:
LevelManager.cs:9
HoloToolkit
HoloToolkit.Examples.LevelManager.LoadNextScene
void LoadNextScene()
Definition:
LevelManager.cs:11
UnityEngine
Assets
HoloToolkit-Examples
SpatialMapping
Scripts
LevelManager.cs
Generated by
1.8.12