First Contact - slight change on Mission Control

This commit is contained in:
Mytiaoga 2022-07-11 15:21:17 +08:00 committed by GitHub
parent 949a23b4ae
commit 667234a855
2 changed files with 367 additions and 369 deletions

View File

@ -230,14 +230,12 @@ namespace HeavenStudio.Games
sfxStrings[0] = "firstContact/success_1";
sfxStrings[1] = "firstContact/success_2";
animString = "alien_success";
Debug.Log("success");
}
else if (alienSpeakCount != translatorSpeakCount)
{
sfxStrings[0] = "firstContact/failAlien_1";
sfxStrings[1] = "firstContact/failAlien_2";
animString = "alien_fail";
Debug.Log("fail");
}
string[] sounds = new string[] { sfxStrings[0], sfxStrings[0] };
@ -294,7 +292,7 @@ namespace HeavenStudio.Games
{
BeatAction.New(missionControl, new List<BeatAction.Action>()
{
new BeatAction.Action(length + 1f, delegate { missionControl.SetActive(false); }),
new BeatAction.Action(length, delegate { missionControl.SetActive(false); }),
});
}
else