Add files via upload

This commit is contained in:
Mytiaoga 2022-07-25 10:03:01 +08:00 committed by GitHub
parent bb81e24572
commit fb169868b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -98,7 +98,7 @@ namespace HeavenStudio.Games
instance = this;
}
public void SetIntervalStart(float beat, float interval = 4f)
public void SetIntervalStart(float beat, float interval)
{
if (!intervalStarted)
{
@ -123,7 +123,7 @@ namespace HeavenStudio.Games
lastReportedBeat = Mathf.Round(Conductor.instance.songPositionInBeats);
}
if (PlayerInput.Pressed() && !IsExpectingInputNow() && !noHitOnce && !isSpeaking)
if (PlayerInput.Pressed() && !IsExpectingInputNow() && !noHitOnce && !isSpeaking && !missionControl.activeInHierarchy)
{
Jukebox.PlayOneShotGame("firstContact/" + randomizerLines());
BeatAction.New(this.gameObject, new List<BeatAction.Action>()
@ -211,16 +211,8 @@ namespace HeavenStudio.Games
}
public void alienTurnOver(float beat)
{
if (!intervalStarted)
{
SetIntervalStart(beat, beatInterval);
}
if (intervalStarted)
{
SetIntervalStart(beat, beatInterval);
}
Jukebox.PlayOneShotGame("firstContact/turnover");
BeatAction.New(alien, new List<BeatAction.Action>()
@ -281,6 +273,7 @@ namespace HeavenStudio.Games
alienSpeakCount = 0;
translatorSpeakCount = 0;
intervalStarted = false;
isSpeaking = false;
hasMissed = false;
noHitOnce = false;
@ -312,7 +305,7 @@ namespace HeavenStudio.Games
{
BeatAction.New(missionControl, new List<BeatAction.Action>()
{
new BeatAction.Action(length, delegate { missionControl.SetActive(false); }),
new BeatAction.Action(beat + length, delegate { missionControl.SetActive(false); }),
});
}
else