You've already forked FateViewer
Removed unused code.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user