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/Goal.cs

23 lines
445 B
C#

using System;
using UnityAtoms.BaseAtoms;
using UnityEngine;
namespace GolfControls
{
public class Goal : MonoBehaviour
{
public BoolVariable hitVariable;
public MeshRenderer myMeshRenderer;
public Material Material;
public void OnTriggerEnter(Collider other)
{
myMeshRenderer.material = Material;
hitVariable.SetValue(true);
}
}
}