Skip to content

Commit e2826cf

Browse files
committed
Remove unused timer
1 parent 8dbf76f commit e2826cf

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

PluginBehavior.cs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,10 @@ namespace IMYSHook;
66
public class PluginBehavior : MonoBehaviour
77
{
88
private static readonly float WaitTime = 1.0f;
9-
private static readonly float CtrlWaitTime = 0.1f;
109
public static bool IsGameSpeedChanged { get; set; }
1110
public static float CurrentGameSpeed { get; set; }
1211
private static float LastGSExecuteTime { get; set; }
1312
private static float LastFPSExecuteTime { get; set; }
14-
private static float LastSkipExecuteTime { get; set; }
1513

1614
private void Update()
1715
{
@@ -90,13 +88,6 @@ private void Update()
9088
Notification.SsPopup(location);
9189
}
9290

93-
LastSkipExecuteTime += Time.deltaTime;
94-
if (LastSkipExecuteTime >= CtrlWaitTime && Input.GetKey(KeyCode.LeftControl) || LastSkipExecuteTime >= CtrlWaitTime && Input.GetKey(KeyCode.RightControl))
95-
{
96-
LastSkipExecuteTime = 0.0f;
97-
98-
}
99-
10091
LastGSExecuteTime += Time.deltaTime;
10192
if (IsGameSpeedChanged && LastGSExecuteTime >= WaitTime && Time.timeScale != CurrentGameSpeed)
10293
{

0 commit comments

Comments
 (0)