|
@@ -1,12 +1,10 @@
|
|
|
-using Immersal.AR.Nreal;
|
|
|
-using System.Collections.Generic;
|
|
|
+using Immersal.AR;
|
|
|
using UnityEngine;
|
|
|
|
|
|
public class ControlLocalizer: MonoBehaviour
|
|
|
{
|
|
|
- public NRLocalizer NRLocalizer;
|
|
|
+ public XRLocalizer XRLocalizer;
|
|
|
public GameObject irobot;
|
|
|
- public List<GameObject> list = new List<GameObject>();
|
|
|
|
|
|
private float time = 0f;
|
|
|
|
|
@@ -17,15 +15,11 @@ public class ControlLocalizer: MonoBehaviour
|
|
|
|
|
|
if(time > 2 && (irobot.activeSelf || first))
|
|
|
{
|
|
|
- NRLocalizer.Localize();
|
|
|
+ XRLocalizer.Localize();
|
|
|
time= 0;
|
|
|
if (!first)
|
|
|
{
|
|
|
first = true;
|
|
|
- foreach(GameObject go in list)
|
|
|
- {
|
|
|
- go.SetActive(true);
|
|
|
- }
|
|
|
}
|
|
|
}
|
|
|
}
|