TheStable/Assets/Horseshoes/Scripts/HorseshoesGameManager.cs
Jamie Greunbaum 8c29052216 - Added a game manager for keeping score.
- Added concrete platforms to the horseshoes court.
- Simplified stable barrel collision. Not related to horseshoes. Sorry.
2026-02-24 17:56:18 -05:00

34 lines
676 B
C#

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)
{
Debug.Log("[HorseshoesGameManager] Horseshoe is in count");
}
else
{
Debug.Log("[HorseshoesGameManager] Horseshoe is not in play");
}
}
public void CalculateRinger(PlayerHorseshoe Shoe)
{
Debug.Log("[HorseshoesGameManager] Ringer!");
}
}