|
@@ -1,6 +1,7 @@
|
|
|
using Immersal.AR;
|
|
|
using UnityEngine;
|
|
|
using Blue;
|
|
|
+using UnityEngine.UI;
|
|
|
|
|
|
|
|
|
|
|
@@ -8,9 +9,14 @@ using Blue;
|
|
|
public class ImmersalLocalizerController: AbstractController
|
|
|
{
|
|
|
private XRLocalizer XRLocalizer =>SceneIOCContainer.Instance.Pull("XRLocalizer")as XRLocalizer;
|
|
|
+ private Toggle Y_Location_Toggle =>SceneIOCContainer.Instance.Pull("Y_Location_Toggle")as Toggle;
|
|
|
+ private Toggle N_Location_Toggle =>SceneIOCContainer.Instance.Pull("N_Location_Toggle")as Toggle;
|
|
|
+
|
|
|
[SerializeField] private float rateTime = 2f;
|
|
|
private float time = 0f;
|
|
|
private bool startLocalizer=false;
|
|
|
+ private Color32 blue= new Color32(0, 120, 255, 255);
|
|
|
+ private Color32 white= new Color32(255, 255, 255, 255);
|
|
|
|
|
|
private void Awake()
|
|
|
{
|
|
@@ -26,7 +32,10 @@ public class ImmersalLocalizerController: AbstractController
|
|
|
InstantiateSystem.Instance.BlueObject.NormalPopUp,
|
|
|
"定位成功");
|
|
|
this.SendCommand(Command);
|
|
|
-
|
|
|
+ Y_Location_Toggle.transform.Find("Background").GetComponent<Image>().color = white;
|
|
|
+ Y_Location_Toggle.transform.Find("Background/Checkmark").GetComponent<Image>().color = white;
|
|
|
+ N_Location_Toggle.transform.Find("Background").GetComponent<Image>().color = blue;
|
|
|
+ N_Location_Toggle.transform.Find("Background/Checkmark").GetComponent<Image>().color = blue;
|
|
|
XRLocalizer.enabled = false;
|
|
|
this.enabled = false;
|
|
|
}).UnRegisterWhenGameObjectDestroyed(gameObject);
|