Removed unused code.
This commit is contained in:
parent
17862fa5c3
commit
9a801fc2fd
|
@ -30,19 +30,6 @@ public class KeyboardShortcuts : MonoBehaviour
|
||||||
|
|
||||||
private void Update()
|
private void Update()
|
||||||
{
|
{
|
||||||
KatboiSequence();
|
|
||||||
|
|
||||||
if (Input.anyKeyDown && !string.IsNullOrEmpty(Input.inputString))
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
}
|
|
||||||
catch(System.Exception e)
|
|
||||||
{
|
|
||||||
Debug.LogWarning("caught " + e);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//Time
|
//Time
|
||||||
if (Input.GetKeyDown(KeyCode.LeftArrow))
|
if (Input.GetKeyDown(KeyCode.LeftArrow))
|
||||||
{
|
{
|
||||||
|
@ -54,34 +41,4 @@ public class KeyboardShortcuts : MonoBehaviour
|
||||||
FateViewerMain.Instance.ChangeAnimationFrame(1);
|
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 |
|
@ -12,7 +12,7 @@ PlayerSettings:
|
||||||
targetDevice: 2
|
targetDevice: 2
|
||||||
useOnDemandResources: 0
|
useOnDemandResources: 0
|
||||||
accelerometerFrequency: 60
|
accelerometerFrequency: 60
|
||||||
companyName: Katboi01
|
companyName: Katworks
|
||||||
productName: Fate Animation Viewer
|
productName: Fate Animation Viewer
|
||||||
defaultCursor: {fileID: 0}
|
defaultCursor: {fileID: 0}
|
||||||
cursorHotspot: {x: 0, y: 0}
|
cursorHotspot: {x: 0, y: 0}
|
||||||
|
@ -134,7 +134,7 @@ PlayerSettings:
|
||||||
16:10: 1
|
16:10: 1
|
||||||
16:9: 1
|
16:9: 1
|
||||||
Others: 1
|
Others: 1
|
||||||
bundleVersion: 2.4.1
|
bundleVersion: 2.4.2
|
||||||
preloadedAssets: []
|
preloadedAssets: []
|
||||||
metroInputSource: 0
|
metroInputSource: 0
|
||||||
wsaTransparentSwapchain: 0
|
wsaTransparentSwapchain: 0
|
||||||
|
@ -150,6 +150,7 @@ PlayerSettings:
|
||||||
m_ColorGamuts: 00000000
|
m_ColorGamuts: 00000000
|
||||||
targetPixelDensity: 30
|
targetPixelDensity: 30
|
||||||
resolutionScalingMode: 0
|
resolutionScalingMode: 0
|
||||||
|
resetResolutionOnWindowResize: 0
|
||||||
androidSupportedAspectRatio: 1
|
androidSupportedAspectRatio: 1
|
||||||
androidMaxAspectRatio: 2.1
|
androidMaxAspectRatio: 2.1
|
||||||
applicationIdentifier:
|
applicationIdentifier:
|
||||||
|
|
|
@ -3,3 +3,6 @@
|
||||||
[1008/234001.769:ERROR:check.cc(298)] Check failed: false. NOTREACHED log messages are omitted in official builds. Sorry!
|
[1008/234001.769:ERROR:check.cc(298)] Check failed: false. NOTREACHED log messages are omitted in official builds. Sorry!
|
||||||
[1009/000128.951:ERROR:check.cc(298)] Check failed: false. NOTREACHED log messages are omitted in official builds. Sorry!
|
[1009/000128.951:ERROR:check.cc(298)] Check failed: false. NOTREACHED log messages are omitted in official builds. Sorry!
|
||||||
[1009/000221.301:ERROR:check.cc(298)] Check failed: false. NOTREACHED log messages are omitted in official builds. Sorry!
|
[1009/000221.301:ERROR:check.cc(298)] Check failed: false. NOTREACHED log messages are omitted in official builds. Sorry!
|
||||||
|
[1009/001613.314:ERROR:check.cc(298)] Check failed: false. NOTREACHED log messages are omitted in official builds. Sorry!
|
||||||
|
[1009/002215.248:ERROR:check.cc(298)] Check failed: false. NOTREACHED log messages are omitted in official builds. Sorry!
|
||||||
|
[1009/002732.252:ERROR:check.cc(298)] Check failed: false. NOTREACHED log messages are omitted in official builds. Sorry!
|
||||||
|
|
Loading…
Reference in New Issue