mirror of
https://github.com/game-ci/unity-test-runner.git
synced 2026-01-28 21:59:06 +08:00
* Add some component tests to reference unity project * Use action/setup-node@v2 to avoid problems with build
18 lines
249 B
C#
18 lines
249 B
C#
using UnityEngine;
|
|
|
|
public class SampleComponent : MonoBehaviour
|
|
{
|
|
public BasicCounter Counter;
|
|
|
|
void Start()
|
|
{
|
|
Counter = new BasicCounter(5);
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
Counter.Increment();
|
|
}
|
|
}
|