Remove the time limitation for the controls screen

This commit is contained in:
Patrice Vignola 2015-08-23 15:38:58 -04:00
parent 0cd305d515
commit 215d19a030
2 changed files with 10 additions and 14 deletions

View File

@ -359,7 +359,7 @@ public class Child : MonoBehaviour
void Die()
{
PlayerWinsMenu menu = (PlayerWinsMenu)MenusHandler.MenusManager.Instance.ShowMenu("PlayerWinsMenu");
menu.SetPlayerIndex(this.Index);
menu.SetPlayerIndex(this.Index == 1 ? 2 : 1);
Destroy(gameObject);
}

View File

@ -1,26 +1,22 @@
using UnityEngine;
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
public int NextLevel;
// Update is called once per frame
void Update () {
if (Input.anyKeyDown) {
Application.LoadLevel(NextLevel);
}
}
}
IEnumerator AutoSkip() {
yield return new WaitForSeconds(5);
Application.LoadLevel(NextLevel);
}
}
}
}