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()
|
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);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -5,10 +5,6 @@ public class SimpleMenu : MonoBehaviour
|
|||||||
{
|
{
|
||||||
public int NextLevel;
|
public int NextLevel;
|
||||||
|
|
||||||
// Use this for initialization
|
|
||||||
void Start () {
|
|
||||||
StartCoroutine(AutoSkip());
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update is called once per frame
|
// Update is called once per frame
|
||||||
void Update () {
|
void Update () {
|
||||||
@ -20,7 +16,7 @@ public class SimpleMenu : MonoBehaviour
|
|||||||
IEnumerator AutoSkip() {
|
IEnumerator AutoSkip() {
|
||||||
|
|
||||||
yield return new WaitForSeconds(5);
|
yield return new WaitForSeconds(5);
|
||||||
Application.LoadLevel(NextLevel);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user