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); } } }