Title.cs
466 Bytes
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class Title : MonoBehaviour
{
public string SceneToLoad;
public void LoadGame()
{
SceneManager.LoadScene(SceneToLoad);
}
void update()
{
Debug.Log("1");
if (Input.GetMouseButtonDown(0))
{
Debug.Log("2");
SceneManager.LoadScene(SceneToLoad);
}
}
}