任务系统一半多,商城筛选功能,一些细节和免费包

This commit is contained in:
2026-03-15 04:27:21 +08:00
parent 416190b23e
commit ec42f2e34b
344 changed files with 32225 additions and 6481 deletions
@@ -1636,6 +1636,16 @@ public class GameManager : MonoBehaviour
/// Records the elapsed play time since the session started and adds it to the song's total play time.
/// Can be called multiple times, but only records once per session.
/// </summary>
public float GetPendingSessionDurationSeconds()
{
if (timeRecorded || currentSong == null || GameConfig.autoPlayEnabled)
{
return 0f;
}
return Mathf.Max(0f, Time.realtimeSinceStartup - sessionStartTime);
}
public void RecordTotalPlayTime()
{
if (timeRecorded || currentSong == null || GameConfig.autoPlayEnabled) return;