Tanoda
pb_LoadLevel.cs
Go to the documentation of this file.
1
using
UnityEngine
;
2
using
System.Collections;
3
#if !UNITY_5_2
4
using
UnityEngine
.SceneManagement;
5
#endif
6
7
namespace
GILES
8
{
12
public
class
pb_LoadLevel
: MonoBehaviour
13
{
14
// The name of the level to load. Must be added to the build settings.
15
public
string
levelName
;
16
17
public
void
Load
()
18
{
19
#if UNITY_5_2
20
Application.LoadLevel(
levelName
);
21
#else
22
SceneManager.LoadScene(
levelName
);
23
#endif
24
}
25
}
26
}
GILES.pb_LoadLevel
Definition:
pb_LoadLevel.cs:13
GILES.pb_LoadLevel.levelName
string levelName
Definition:
pb_LoadLevel.cs:15
GILES.pb_LoadLevel.Load
void Load()
Definition:
pb_LoadLevel.cs:17
GILES
Definition:
pb_CollectionUtil.cs:4
UnityEngine
Definition:
HSVPicker/UtilityScripts/BoxSlider.cs:7
Source
Assets
GILES
Code
Scripts
pb_LoadLevel.cs
Generated by
1.9.3