36 lines
841 B
C#
36 lines
841 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
using UnityEngine.SceneManagement;
|
|
|
|
public class EntrySceneScript : MonoBehaviour {
|
|
|
|
public Button firstGameButton;
|
|
|
|
public Button secondGameButton;
|
|
|
|
// Use this for initialization
|
|
void Start () {
|
|
Debug.Log("Started");
|
|
firstGameButton.GetComponent<Button>().onClick.AddListener(LoadFirstGame);
|
|
secondGameButton.GetComponent<Button>().onClick.AddListener(LoadSecondGame);
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update () {
|
|
|
|
}
|
|
|
|
public void LoadFirstGame()
|
|
{
|
|
Debug.Log("Load first game");
|
|
SceneManager.LoadScene("Quiz4Scene");
|
|
}
|
|
|
|
public void LoadSecondGame() {
|
|
Debug.Log("Load second game");
|
|
SceneManager.LoadScene("Quiz2Scene");
|
|
}
|
|
}
|