mirror of
https://github.com/game-ci/unity-builder.git
synced 2025-07-04 12:25:19 -04:00
19 lines
267 B
C#
19 lines
267 B
C#
using System;
|
|
|
|
public class BasicCounter
|
|
{
|
|
public const int MaxCount = 10;
|
|
|
|
public BasicCounter(int count = 0)
|
|
{
|
|
Count = count;
|
|
}
|
|
|
|
public void Increment()
|
|
{
|
|
Count = Math.Min(MaxCount, Count + 1);
|
|
}
|
|
|
|
public int Count { get; private set; }
|
|
}
|