21 lines
245 B
C#
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 ();
|
|
|
|
}
|
|
}
|