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() void Die()
{ {
PlayerWinsMenu menu = (PlayerWinsMenu)MenusHandler.MenusManager.Instance.ShowMenu("PlayerWinsMenu"); PlayerWinsMenu menu = (PlayerWinsMenu)MenusHandler.MenusManager.Instance.ShowMenu("PlayerWinsMenu");
menu.SetPlayerIndex(this.Index); menu.SetPlayerIndex(this.Index == 1 ? 2 : 1);
Destroy(gameObject); Destroy(gameObject);
} }

View File

@ -1,26 +1,22 @@
using UnityEngine; using UnityEngine;
using System.Collections; using System.Collections;
public class SimpleMenu : MonoBehaviour public class SimpleMenu : MonoBehaviour
{ {
public int NextLevel; public int NextLevel;
// Use this for initialization
void Start () { // Update is called once per frame
StartCoroutine(AutoSkip());
}
// Update is called once per frame
void Update () { void Update () {
if (Input.anyKeyDown) { if (Input.anyKeyDown) {
Application.LoadLevel(NextLevel); Application.LoadLevel(NextLevel);
} }
} }
IEnumerator AutoSkip() { IEnumerator AutoSkip() {
yield return new WaitForSeconds(5); yield return new WaitForSeconds(5);
Application.LoadLevel(NextLevel);
} }
} }