Select Git revision
ReferencePoint.cs
ReferencePoint.cs 619 B
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ReferencePoint : MonoBehaviour
{
bool TouchedOnce = false;
private void OnTriggerEnter(Collider other)
{
// Debug.Log("TriggerEnter");
if (!TouchedOnce && other.gameObject.tag == "gesture")
{
HandController.instance.IncrementCorrectPoint();
TouchedOnce = true;
}
}
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
}
}