using UdonSharp; using UnityEngine; using VRC.SDKBase; using VRC.Udon; [UdonBehaviourSyncMode(BehaviourSyncMode.Manual)] public class HorseshoesGameManager : UdonSharpBehaviour { private const float IN_COUNT_DISTANCE = (0.0254f * 6); private const int RINGER_POINT_VALUE = 3; public void CalculatePoints(PlayerHorseshoe Shoe, float DistanceFromStake) { if (DistanceFromStake <= IN_COUNT_DISTANCE) { Shoe.ScoreDisplayText.text = "+1"; Debug.Log("[HorseshoesGameManager] Horseshoe is in count"); } else { Shoe.ScoreDisplayText.text = "+0"; Debug.Log("[HorseshoesGameManager] Horseshoe is not in play"); } } public void CalculateRinger(PlayerHorseshoe Shoe) { Shoe.ScoreDisplayText.text = "+3"; Debug.Log("[HorseshoesGameManager] Ringer!"); } }