16 lines
355 B
C#
16 lines
355 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.SceneManagement;
|
|
|
|
public class LoadSceneOnClick : MonoBehaviour
|
|
{
|
|
public string sceneName;
|
|
|
|
void OnMouseDown()
|
|
{
|
|
Debug.Log("Load scene: " + this.sceneName);
|
|
SceneManager.LoadScene(this.sceneName, LoadSceneMode.Single);
|
|
}
|
|
}
|