update
This commit is contained in:
@@ -57,21 +57,13 @@ namespace Ichni
|
||||
|
||||
if (audioManager.isPlaying)
|
||||
{
|
||||
songTimeSegment = PlaySegment() / 1000f - (judgeOffset / 1000f);
|
||||
|
||||
if (songTimeSegment > 0)
|
||||
float currentSongSegment = PlaySegment() / 1000f - (judgeOffset / 1000f);
|
||||
|
||||
if (recordedSongSeg < currentSongSegment)
|
||||
{
|
||||
recordedSongSeg = songTimeSegment;
|
||||
songTimeSegment = currentSongSegment;
|
||||
recordedSongSeg = currentSongSegment;
|
||||
}
|
||||
|
||||
/*
|
||||
else if (songTimeSegment == 0 && recordedSongSeg > 0)
|
||||
{
|
||||
audioManager.isFinished = true;
|
||||
songTimeSegment = recordedSongSeg;
|
||||
}*/
|
||||
|
||||
//Debug.Log($"Song Time Segment: {songTimeSegment}, Recorded Segment: {recordedSongSeg}");
|
||||
}
|
||||
else if (audioManager.isPausing)
|
||||
{
|
||||
@@ -98,7 +90,7 @@ namespace Ichni
|
||||
[Button]
|
||||
public void PauseSong()
|
||||
{
|
||||
pauseTimeSegment = PlaySegment() / 1000f - (judgeOffset / 1000f);
|
||||
pauseTimeSegment = songTimeSegment;
|
||||
audioManager.isPlaying = false;
|
||||
audioManager.isPausing = true;
|
||||
PauseMusicEvent.Post(gameObject);
|
||||
@@ -130,6 +122,7 @@ namespace Ichni
|
||||
{
|
||||
if (in_info is AkMusicSyncCallbackInfo musicInfo)
|
||||
{
|
||||
GameManager.instance.songInformation.songLength = musicInfo.segmentInfo_iActiveDuration / 1000f;
|
||||
InformationTransistor.instance.songLength = musicInfo.segmentInfo_iActiveDuration / 1000f;
|
||||
InformationTransistor.instance.bpm = GameManager.instance.songInformation.bpm;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user