mirror of
https://github.com/game-ci/unity-test-runner.git
synced 2026-01-28 21:59:06 +08:00
* add: new inputs and method params * feat: add scoped registry to manifest * feat: setup test job * fix(workflow): revert change from license to serial * feat: support private scoped registries * fix: multiple scopes
19 lines
280 B
C#
19 lines
280 B
C#
using UnityEngine;
|
|
|
|
public class TimerComponent : MonoBehaviour
|
|
{
|
|
public BasicCounter Counter = new BasicCounter();
|
|
public float Timer = 1f;
|
|
|
|
void Update()
|
|
{
|
|
Timer -= Time.deltaTime;
|
|
|
|
if (Timer > 0)
|
|
return;
|
|
|
|
Counter.Increment();
|
|
Timer = 1f;
|
|
}
|
|
}
|