Files
taptap2024_GJ_chidouren/Assets/Scripts/System/Account/GameHistoryLog.cs
2024-10-16 00:03:41 +08:00

23 lines
490 B
C#

namespace System.Game.Account
{
public class GameHistoryLog
{
public int TotalCount;
public int SuccessCount;
public int FailCount;
public void Log(bool isSuccess)
{
this.TotalCount += 1;
if (isSuccess)
this.SuccessCount += 1;
else
this.FailCount += 1;
// SuccessCount += isSuccess ? 1 : 0;
// FailCount += isSuccess ? 0 : 1;
}
}
}