任务系统一半多,商城筛选功能,一些细节和免费包
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user