mirror of
https://github.com/ConjureETS/PillowFight.git
synced 2026-03-24 00:50:59 +00:00
Remove the time limitation for the controls screen
This commit is contained in:
parent
0cd305d515
commit
215d19a030
@ -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);
|
||||
}
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user