mirror of
https://github.com/lllyasviel/YGOProUnity_V2.git
synced 2026-10-23 09:58:51 +08:00
15 lines
260 B
C#
15 lines
260 B
C#
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);
|
|
}
|
|
}
|
|
} |