fix caller beat in multisound

This commit is contained in:
blank3times 2024-02-04 01:44:16 -08:00
parent 1ea721717f
commit b08f4b2710
2 changed files with 21 additions and 17 deletions

View file

@ -137,7 +137,7 @@ namespace HeavenStudio.Games
{ {
if (state >= 1f || state <= -1f) if (state >= 1f || state <= -1f)
{ {
double beat = caller.timer; double beat = caller.startBeat + caller.timer;
MultiSound.Play(new MultiSound.Sound[] { MultiSound.Play(new MultiSound.Sound[] {
new MultiSound.Sound("holeInOne/mandrill1", beat),// temp should be miss new MultiSound.Sound("holeInOne/mandrill1", beat),// temp should be miss
@ -147,7 +147,7 @@ namespace HeavenStudio.Games
} }
else else
{ {
double beat = caller.timer; double beat = caller.startBeat + caller.timer;
int randomSuccess = UnityEngine.Random.Range(1,5); int randomSuccess = UnityEngine.Random.Range(1,5);
MultiSound.Play(new MultiSound.Sound[] { MultiSound.Play(new MultiSound.Sound[] {
@ -169,7 +169,7 @@ namespace HeavenStudio.Games
{ {
if (state >= 1f || state <= -1f) if (state >= 1f || state <= -1f)
{ {
double beat = caller.timer; double beat = caller.startBeat + caller.timer;
MultiSound.Play(new MultiSound.Sound[] { MultiSound.Play(new MultiSound.Sound[] {
new MultiSound.Sound("holeInOne/mandrill1", beat),// temp should be miss new MultiSound.Sound("holeInOne/mandrill1", beat),// temp should be miss
@ -179,7 +179,7 @@ namespace HeavenStudio.Games
} }
else else
{ {
double beat = caller.timer; double beat = caller.startBeat + caller.timer;
int randomSuccess = UnityEngine.Random.Range(1,5); int randomSuccess = UnityEngine.Random.Range(1,5);
MultiSound.Play(new MultiSound.Sound[] { MultiSound.Play(new MultiSound.Sound[] {

View file

@ -17,7 +17,13 @@ MonoBehaviour:
DenseViewWidthThreshold: 512 DenseViewWidthThreshold: 512
_disableAutoReloadInBackground: 0 _disableAutoReloadInBackground: 0
ImportedScriptPaths: ImportedScriptPaths:
- Assets/Scripts/Games/HoleInOne/HoleInOne.cs - Assets/Scripts/Minigames.cs
- Assets/Editor/CreateAssetBundles.cs
- Assets/Editor/CreateMinigameScriptTemplate.cs
- Assets/Scripts/Games/Minigame.cs
- Assets/Scripts/Games/FanClub/FanClub.cs
- Assets/Scripts/GameManager.cs
- Assets/Editor/SpritesheetScaler.cs
- Assets/Scripts/USG.g/LoadMinigames.Minigames.MinigameLoaderGenerator.g.cs - Assets/Scripts/USG.g/LoadMinigames.Minigames.MinigameLoaderGenerator.g.cs
- Assets/Scripts/Games/TheDazzles/TheDazzles.cs - Assets/Scripts/Games/TheDazzles/TheDazzles.cs
- Assets/Scripts/Games/FirstContact/FirstContact.cs - Assets/Scripts/Games/FirstContact/FirstContact.cs
@ -42,18 +48,16 @@ MonoBehaviour:
- Assets/Scripts/LevelEditor/Timeline/SpecialTmeline/SectionDialog.cs - Assets/Scripts/LevelEditor/Timeline/SpecialTmeline/SectionDialog.cs
- Assets/Scripts/LevelEditor/Timeline/SpecialTmeline/TimelineObjs/SectionTimelineObj.cs - Assets/Scripts/LevelEditor/Timeline/SpecialTmeline/TimelineObjs/SectionTimelineObj.cs
- Assets/Scripts/Games/DJSchool/Student.cs - Assets/Scripts/Games/DJSchool/Student.cs
- Assets/Scripts/UI/PauseMenu.cs - Assets/Scripts/AppInfo.cs
- Assets/Scripts/Util/Sound.cs
- Assets/Scripts/Conductor.cs
- Assets/Scripts/EventCaller.cs
- Assets/Scripts/Games/TrickClass/TrickClass.cs
- Assets/Scripts/GameInitializer.cs
- Assets/Scripts/LevelEditor/Timeline/Timeline.cs
- Assets/Scripts/Games/PlayerActionEvent.cs
- Assets/Scripts/Games/KarateMan/KarateManPot.cs
- Assets/Scripts/Games/DJSchool/DJSchool.cs - Assets/Scripts/Games/DJSchool/DJSchool.cs
- Assets/Scripts/Games/Minigame.cs - Assets/Scripts/GameInitializer.cs
- Assets/Scripts/GameManager.cs - Assets/Scripts/EventCaller.cs
- Assets/Scripts/Minigames.cs - Assets/Scripts/Games/KarateMan/KarateManPot.cs
- Assets/Scripts/Games/TrickClass/TrickClass.cs
- Assets/Scripts/Conductor.cs
- Assets/Scripts/Util/Sound.cs
- Assets/Scripts/LevelEditor/Timeline/Timeline.cs
- Assets/Scripts/Games/HoleInOne/HoleInOne.cs
- Assets/Scripts/Games/PlayerActionEvent.cs
PathsToSkipImportEvent: [] PathsToSkipImportEvent: []
PathsToIgnoreOverwriteSettingOnAttribute: [] PathsToIgnoreOverwriteSettingOnAttribute: []