Removed unused code.

This commit is contained in:
2023-10-09 00:34:06 +02:00
parent 17862fa5c3
commit 9a801fc2fd
4 changed files with 6 additions and 45 deletions

View File

@@ -30,19 +30,6 @@ public class KeyboardShortcuts : MonoBehaviour
private void Update()
{
KatboiSequence();
if (Input.anyKeyDown && !string.IsNullOrEmpty(Input.inputString))
{
try
{
}
catch(System.Exception e)
{
Debug.LogWarning("caught " + e);
}
}
//Time
if (Input.GetKeyDown(KeyCode.LeftArrow))
{
@@ -54,34 +41,4 @@ public class KeyboardShortcuts : MonoBehaviour
FateViewerMain.Instance.ChangeAnimationFrame(1);
}
}
private void KatboiSequence()
{
List<string> sequences = new List<string>()
{
"KATBOI01"
};
if (Input.anyKeyDown && !string.IsNullOrEmpty(Input.inputString))
{
if (KeyStrokes.Count >= 10)
{
KeyStrokes = ((IEnumerable<char>)KeyStrokes).Reverse().Take(10).Reverse().ToList();
}
KeyStrokes.Add(Input.inputString.ToUpper()[0]);
}
string passcode = sequences.FirstOrDefault(s => new string(KeyStrokes.ToArray()).Contains(s));
if (!string.IsNullOrEmpty(passcode))
{
switch (passcode)
{
case "KATBOI01":
break;
default: break;
}
KeyStrokes.Clear();
}
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.7 KiB

After

Width:  |  Height:  |  Size: 11 KiB