1
0
mirror of https://projects.caleb-brown.dev/UDRI-XRT/UDRIGEEKCup2024.git synced 2025-01-22 15:18:25 -05:00
UDRIGEEKCup2024/Assets/GolfControls/StrokeCounter.cs
2024-04-22 13:40:07 -04:00

21 lines
395 B
C#

using UnityAtoms.BaseAtoms;
using UnityEngine;
namespace GolfControls
{
public class StrokeCounter : MonoBehaviour
{
public IntVariable StrokeVariable;
public void OnHit(bool isHit)
{
if (!isHit)
{
return;
}
StrokeVariable.SetValue(StrokeVariable.Value + 1);
}
}
}