mirror of
https://github.com/ConjureETS/PillowFight.git
synced 2026-03-24 09:00:58 +00:00
27 lines
491 B
C#
27 lines
491 B
C#
using UnityEngine;
|
|
using System.Collections;
|
|
|
|
public class SimpleMenu : MonoBehaviour
|
|
{
|
|
public int NextLevel;
|
|
|
|
// Use this for initialization
|
|
void Start () {
|
|
StartCoroutine(AutoSkip());
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update () {
|
|
if (Input.anyKeyDown) {
|
|
Application.LoadLevel(NextLevel);
|
|
}
|
|
}
|
|
|
|
IEnumerator AutoSkip() {
|
|
|
|
yield return new WaitForSeconds(5);
|
|
Application.LoadLevel(NextLevel);
|
|
|
|
}
|
|
}
|