mirror of
https://github.com/game-ci/unity-actions.git
synced 2026-02-04 00:49:06 +08:00
Update workflow to latest standards + add test projects (#102)
* 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
This commit is contained in:
18
test-projects/test-project/Assets/Scripts/BasicCounter.cs
Normal file
18
test-projects/test-project/Assets/Scripts/BasicCounter.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
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; }
|
||||
}
|
||||
Reference in New Issue
Block a user