holopy3/Assets/Broken Glass VR/Scripts/hitDetect.cs

22 lines
245 B
C#
Raw Normal View History

2020-12-10 14:25:12 +00:00
using UnityEngine;
using System.Collections;
public class hitDetect : MonoBehaviour {
void Start () {
}
void Update () {
}
void OnCollisionEnter(Collision c){
GetComponentInParent<brokenGlassVR> ().GlassShatter ();
}
}