This repository has been archived on 2025-04-11. You can view files and clone it, but cannot push or open issues or pull requests.
project-undercover/Project Undercover/Assets/Scripts/UI/ButtonController.cs

25 lines
405 B
C#
Raw Normal View History

2017-11-27 20:27:19 -06:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ButtonController : MonoBehaviour {
2017-11-30 10:25:04 -06:00
public GameObject ui;
2017-11-27 20:27:19 -06:00
public void ExitGame() {
Application.Quit();
}
2017-11-30 10:25:04 -06:00
2017-11-27 20:27:19 -06:00
public void NextScene(string name) {
Application.LoadLevel(name);
}
2017-11-30 10:25:04 -06:00
public void ShowInstructions() {
ui.SetActive (true);
}
public void HideInstructions() {
ui.SetActive (false);
}
2017-11-27 20:27:19 -06:00
}