holopy3/Assets/Broken Glass VR/Scripts/hitDetect.cs
2020-12-10 15:25:12 +01:00

21 lines
245 B
C#

using UnityEngine;
using System.Collections;
public class hitDetect : MonoBehaviour {
void Start () {
}
void Update () {
}
void OnCollisionEnter(Collision c){
GetComponentInParent<brokenGlassVR> ().GlassShatter ();
}
}