Tanoda
PanoramaAR.cs
Go to the documentation of this file.
1using System.Collections;
2using System.Collections.Generic;
3using UnityEngine;
5
6public class PanoramaAR : MonoBehaviour
7{
8 public UnityEvent onAr, onPanorama;
9
10 public void OnValueChanged(bool value) //TODO: check if VIVE Pro
11 {
12 if (value)
13 {
14 onAr.Invoke();
15 }
16 else
17 {
18 onPanorama.Invoke();
19 }
20 }
21
22}
UnityEvent onAr
Definition: PanoramaAR.cs:8
void OnValueChanged(bool value)
Definition: PanoramaAR.cs:10
UnityEvent onPanorama
Definition: PanoramaAR.cs:8