void Start()
 {
     pointGenerator = GetComponentInChildren <FocalPointVR_PointGenerator>();
     ixdManager.registerPointGenerator(pointGenerator);
     steamTrackedObj = GetComponent <SteamVR_TrackedObject>();
     controllerIndex = GetComponent <SteamVR_TrackedObject>().index.GetHashCode();
 }
 void Start()
 {
     pointGenerator = GetComponentInChildren <FocalPointVR_PointGenerator>();
     if (ixdManager == null)
     {
         ixdManager = GameObject.FindObjectOfType <FocalPointVR_InteractionManager> ();
     }
     ixdManager.registerPointGenerator(pointGenerator);
     steamTrackedObj = GetComponent <SteamVR_TrackedObject>();
     controllerIndex = GetComponent <SteamVR_TrackedObject>().index.GetHashCode();
 }
Esempio n. 3
0
 public void registerPointGenerator(FocalPointVR_PointGenerator pg)
 {
     pointGenerators.Add(pg);
 }