boB 21a16e637f Revert "retire Steam VR"
This reverts commit f627f1e1c3e7c010a70ba1eacfb7b3aab85ffd43.
2021-11-11 16:51:51 -05:00

28 lines
537 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class HammerTrigger : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
}
private void OnTriggerEnter(Collider other)
{
if (other.gameObject.tag == "Target")
{
Executable ex = other.gameObject.GetComponent("Executable") as Executable;
ex.Execute();
}
}
}