mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-14 21:55:09 +00:00
fix #640
This commit is contained in:
parent
2b30b7de97
commit
4dd1fec62b
2 changed files with 32 additions and 25 deletions
|
@ -267,11 +267,15 @@ namespace HeavenStudio.Games
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override void OnPlay(double beat)
|
||||||
|
{
|
||||||
|
if (queuedPoses.Count > 0) queuedPoses.Clear();
|
||||||
|
if (queuedCrouches.Count > 0) queuedCrouches.Clear();
|
||||||
|
}
|
||||||
|
|
||||||
void Update()
|
void Update()
|
||||||
{
|
{
|
||||||
var cond = Conductor.instance;
|
if (conductor.isPlaying && !conductor.isPaused)
|
||||||
|
|
||||||
if (cond.isPlaying && !cond.isPaused)
|
|
||||||
{
|
{
|
||||||
if (queuedPoses.Count > 0)
|
if (queuedPoses.Count > 0)
|
||||||
{
|
{
|
||||||
|
@ -319,33 +323,34 @@ namespace HeavenStudio.Games
|
||||||
}
|
}
|
||||||
shouldHold = false;
|
shouldHold = false;
|
||||||
}
|
}
|
||||||
if (PlayerInput.GetIsAction(InputAction_TouchRelease) && !GameManager.instance.autoplay)
|
if (PlayerInput.CurrentControlStyle == InputController.ControlStyles.Touch)
|
||||||
{
|
{
|
||||||
player.UnPrepare();
|
if (PlayerInput.GetIsAction(InputAction_TouchRelease) && !gameManager.autoplay)
|
||||||
shouldHold = false;
|
|
||||||
}
|
|
||||||
if (PlayerInput.GetIsAction(InputAction_BasicRelease) && shouldHold && !GameManager.instance.autoplay)
|
|
||||||
{
|
|
||||||
if (doingPoses)
|
|
||||||
{
|
|
||||||
player.Pose(false);
|
|
||||||
SoundByte.PlayOneShotGame("theDazzles/miss");
|
|
||||||
foreach (var girl in npcGirls)
|
|
||||||
{
|
|
||||||
girl.Ouch();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
player.UnPrepare();
|
player.UnPrepare();
|
||||||
|
shouldHold = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (PlayerInput.GetIsAction(InputAction_BasicRelease) && shouldHold && (!gameManager.autoplay) && !IsExpectingInputNow(InputAction_FlickRelease))
|
||||||
|
{
|
||||||
|
if (doingPoses)
|
||||||
|
{
|
||||||
|
player.Pose(false);
|
||||||
|
SoundByte.PlayOneShotGame("theDazzles/miss");
|
||||||
|
foreach (var girl in npcGirls)
|
||||||
|
{
|
||||||
|
girl.Ouch();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
player.UnPrepare();
|
||||||
|
}
|
||||||
|
shouldHold = false;
|
||||||
}
|
}
|
||||||
shouldHold = false;
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else if (!cond.isPlaying && !cond.isPaused)
|
|
||||||
{
|
|
||||||
if (queuedPoses.Count > 0) queuedPoses.Clear();
|
|
||||||
if (queuedCrouches.Count > 0) queuedCrouches.Clear();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -24,5 +24,7 @@ MonoBehaviour:
|
||||||
- Assets/Scripts/Games/FanClub/FanClub.cs
|
- Assets/Scripts/Games/FanClub/FanClub.cs
|
||||||
- Assets/Scripts/GameManager.cs
|
- Assets/Scripts/GameManager.cs
|
||||||
- Assets/Editor/SpritesheetScaler.cs
|
- Assets/Editor/SpritesheetScaler.cs
|
||||||
|
- Assets/Scripts/USG.g/LoadMinigames.Minigames.MinigameLoaderGenerator.g.cs
|
||||||
|
- Assets/Scripts/Games/TheDazzles/TheDazzles.cs
|
||||||
PathsToSkipImportEvent: []
|
PathsToSkipImportEvent: []
|
||||||
PathsToIgnoreOverwriteSettingOnAttribute: []
|
PathsToIgnoreOverwriteSettingOnAttribute: []
|
||||||
|
|
Loading…
Reference in a new issue