mirror of
https://github.com/ConjureETS/PillowFight.git
synced 2026-03-24 09:00:58 +00:00
21 lines
381 B
C#
21 lines
381 B
C#
using UnityEngine;
|
|
using System.Collections;
|
|
|
|
public class SimpleMenu : MonoBehaviour
|
|
{
|
|
public int NextLevel;
|
|
private float countdown = 1f;
|
|
|
|
// Use this for initialization
|
|
void Start () {
|
|
//TODO Use XInput to
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update () {
|
|
countdown -= Time.deltaTime;
|
|
if (countdown < 0)
|
|
Application.LoadLevel(NextLevel);
|
|
}
|
|
}
|