add
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
using UnityEngine;
|
||||
|
||||
[AddComponentMenu("NGUI/Examples/Load Level On Click")]
|
||||
public class LoadLevelOnClick : MonoBehaviour
|
||||
{
|
||||
public string levelName;
|
||||
|
||||
void OnClick ()
|
||||
{
|
||||
if (!string.IsNullOrEmpty(levelName))
|
||||
{
|
||||
Application.LoadLevel(levelName);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user