mirror of
https://github.com/ConjureETS/PillowFight.git
synced 2026-03-24 00:50:59 +00:00
21 lines
380 B
C#
21 lines
380 B
C#
using UnityEngine;
|
|
using System.Collections;
|
|
using InputHandler;
|
|
using MenusHandler;
|
|
|
|
public class SimpleMenu2 : Menu
|
|
{
|
|
public int NextLevel;
|
|
|
|
private bool _loadingNextLevel = false;
|
|
|
|
void Update()
|
|
{
|
|
if (Input.anyKeyDown && !_loadingNextLevel)
|
|
{
|
|
Application.LoadLevel(NextLevel);
|
|
_loadingNextLevel = true;
|
|
}
|
|
}
|
|
}
|