mirror of
https://github.com/ConjureETS/PixelSphinx.git
synced 2026-03-24 18:40:57 +00:00
27 lines
466 B
C#
27 lines
466 B
C#
using UnityEngine;
|
|
using System.Collections;
|
|
using UnityEngine.SceneManagement;
|
|
|
|
public class SimpleMenu : MonoBehaviour
|
|
{
|
|
public int NextLevel;
|
|
|
|
|
|
// Update is called once per frame
|
|
void Update () {
|
|
if (Input.anyKeyDown) {
|
|
if (NextLevel == 200)
|
|
Application.Quit();
|
|
else
|
|
SceneManager.LoadScene(NextLevel);
|
|
}
|
|
}
|
|
|
|
IEnumerator AutoSkip() {
|
|
|
|
yield return new WaitForSeconds(5);
|
|
|
|
|
|
}
|
|
}
|