RosimInc 495e1dd259 Continued implementation of main menus
Signed-off-by: RosimInc <rosim_inc@hotmail.com>
2015-08-23 14:06:03 -04:00

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);
}
}