adding sounds/color flashing to spot
main menu stub sounds spot materials
This commit is contained in:
20
Assets/Menu.cs
Normal file
20
Assets/Menu.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
|
||||
public class Menu : MonoBehaviour
|
||||
{
|
||||
public string gameSceneName;
|
||||
|
||||
public void PlayButtonPressed()
|
||||
{
|
||||
if (!string.IsNullOrEmpty(gameSceneName))
|
||||
SceneManager.LoadScene(gameSceneName, LoadSceneMode.Single);
|
||||
}
|
||||
|
||||
public void ExitButtonPressed()
|
||||
{
|
||||
Application.Quit();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user