// Use this for initialization void Start() { blur = GetComponentInChildren <BlurOptimized>(); blur.enabled = false; clip = vibration; instance = this; }
void OnTriggerEnter(Collider col) { if (col.gameObject.GetComponent <OVRPlayerController>()) { ui.SetActive(true); HitBlur.HitPlayer(null, null); } }
private void OnTriggerEnter(Collider other) { if (other.GetComponent <OVRPlayerController>()) { inValidZone = false; HitBlur.HitPlayer(offPathClip, speaker); Invoke("CheckValid", 5); } }
//restart void CheckValid() { if (!inValidZone) { speaker.Play(); Invoke("Retry", 2); HitBlur.HitPlayer(offPathClip, speaker); fadingCam = true; } }