blob: 809d294edfd678ea1b9a44888d66bcfb53a0e701 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
using InControl;
using UnityEngine;
public class SkipIntro : MonoBehaviour
{
public static bool hasShown;
public ListMenuPage target;
private void Start()
{
if (hasShown)
{
Skip();
}
hasShown = true;
}
private void Update()
{
for (int i = 0; i < InputManager.ActiveDevices.Count; i++)
{
if (InputManager.ActiveDevices[i].AnyButton.WasPressed)
{
Skip();
}
}
if (Input.GetKeyDown(KeyCode.Escape))
{
Skip();
}
}
private void Skip()
{
target.Open();
}
}
|