2023-06-07 06:05:27 +00:00
|
|
|
using UnityEngine;
|
2021-01-11 00:05:44 +00:00
|
|
|
|
|
|
|
public class SampleComponent : MonoBehaviour
|
|
|
|
{
|
|
|
|
public BasicCounter Counter;
|
|
|
|
|
|
|
|
void Start()
|
|
|
|
{
|
|
|
|
Counter = new BasicCounter(5);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Update is called once per frame
|
|
|
|
void Update()
|
|
|
|
{
|
|
|
|
Counter.Increment();
|
|
|
|
}
|
|
|
|
}
|