mirror of https://github.com/hykilpikonna/AquaDX
[F] Seek resets speed
Build AquaMai / build (push) Has been cancelled
Details
Build AquaMai / build (push) Has been cancelled
Details
parent
1810bbe2d5
commit
953083a0bf
|
@ -1,4 +1,5 @@
|
||||||
using System;
|
using System;
|
||||||
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using AquaMai.Fix;
|
using AquaMai.Fix;
|
||||||
|
@ -51,6 +52,17 @@ public class PractiseMode
|
||||||
movie.player.SetSpeed(speed);
|
movie.player.SetSpeed(speed);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static IEnumerator SetSpeedCoroutineInner()
|
||||||
|
{
|
||||||
|
yield return null;
|
||||||
|
SetSpeed();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void SetSpeedCoroutine()
|
||||||
|
{
|
||||||
|
SharedInstances.GameMainObject.StartCoroutine(SetSpeedCoroutineInner());
|
||||||
|
}
|
||||||
|
|
||||||
public static void SpeedUp()
|
public static void SpeedUp()
|
||||||
{
|
{
|
||||||
speed += .05f;
|
speed += .05f;
|
||||||
|
@ -65,9 +77,9 @@ public class PractiseMode
|
||||||
public static void SpeedDown()
|
public static void SpeedDown()
|
||||||
{
|
{
|
||||||
speed -= .05f;
|
speed -= .05f;
|
||||||
if (speed < 0.5)
|
if (speed < 0.05)
|
||||||
{
|
{
|
||||||
speed = 0.5f;
|
speed = 0.05f;
|
||||||
}
|
}
|
||||||
|
|
||||||
SetSpeed();
|
SetSpeed();
|
||||||
|
|
|
@ -91,14 +91,20 @@ public class PractiseModeUI : MonoBehaviour
|
||||||
if (InputManager.GetTouchPanelAreaDown(InputManager.TouchPanelArea.E8))
|
if (InputManager.GetTouchPanelAreaDown(InputManager.TouchPanelArea.E8))
|
||||||
{
|
{
|
||||||
DebugFeature.Seek(-1000);
|
DebugFeature.Seek(-1000);
|
||||||
|
PractiseMode.SetSpeedCoroutine();
|
||||||
}
|
}
|
||||||
else if (InputManager.GetTouchPanelAreaDown(InputManager.TouchPanelArea.E2))
|
else if (InputManager.GetTouchPanelAreaDown(InputManager.TouchPanelArea.E2))
|
||||||
{
|
{
|
||||||
DebugFeature.Seek(1000);
|
DebugFeature.Seek(1000);
|
||||||
|
PractiseMode.SetSpeedCoroutine();
|
||||||
}
|
}
|
||||||
else if (InputManager.GetTouchPanelAreaDown(InputManager.TouchPanelArea.B8) || InputManager.GetTouchPanelAreaDown(InputManager.TouchPanelArea.B1))
|
else if (InputManager.GetTouchPanelAreaDown(InputManager.TouchPanelArea.B8) || InputManager.GetTouchPanelAreaDown(InputManager.TouchPanelArea.B1))
|
||||||
{
|
{
|
||||||
DebugFeature.Pause = !DebugFeature.Pause;
|
DebugFeature.Pause = !DebugFeature.Pause;
|
||||||
|
if (!DebugFeature.Pause)
|
||||||
|
{
|
||||||
|
PractiseMode.SetSpeedCoroutine();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (InputManager.GetTouchPanelAreaDown(InputManager.TouchPanelArea.B7) && PractiseMode.repeatStart == -1)
|
else if (InputManager.GetTouchPanelAreaDown(InputManager.TouchPanelArea.B7) && PractiseMode.repeatStart == -1)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue