mirror of
https://github.com/game-ci/unity-actions.git
synced 2026-01-29 04:39:07 +08:00
* Move test-project to subfolder * Update workflow to target test-project * Add 2018.3-legacy test-project * Rename to legacy-render-pipeline * Add test project for URP * Cache LFS * Update license * Ignore artifacts * Add test project for HDRP * Avoid ambiguity in cache key
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; }
|
|
}
|