|
@@ -12,7 +12,6 @@ public class SavePanel : AbstractController
|
|
|
public Transform meshTest;
|
|
|
public Transform parent;
|
|
|
public SCToggleSwitch3D sCToggleSwitch3D;
|
|
|
- [SerializeField] private GameObject ARMap;
|
|
|
|
|
|
private List<ScenePosRotInfo> posRotlist = new List<ScenePosRotInfo>();
|
|
|
private ScenePosRotInfo pos = new ScenePosRotInfo();
|
|
@@ -22,8 +21,6 @@ public class SavePanel : AbstractController
|
|
|
posRotlist.Add(pos); posRotlist.Add(rot);
|
|
|
meshTest = GameObject.Find("ARSpaceForAll/mesh_test").gameObject.transform;
|
|
|
parent = GameObject.Find("ARSpaceForAll").transform;
|
|
|
- ARMap = GameObject.Find("ARSpaceForAll/AR_Map");
|
|
|
- ARMap.SetActive(false);
|
|
|
sCToggleSwitch3D = transform.parent.GetComponent<SCToggleSwitch3D>();
|
|
|
|
|
|
saveBtn.onClick.AddListener(Save);
|
|
@@ -69,14 +66,10 @@ public class SavePanel : AbstractController
|
|
|
|
|
|
private void OnEnable()
|
|
|
{
|
|
|
- if(ARMap!=null)
|
|
|
- ARMap.SetActive(false);
|
|
|
- SetSceneActive.active = true;
|
|
|
+ SetSceneActive.Instance.active = true;
|
|
|
}
|
|
|
private void OnDisable()
|
|
|
{
|
|
|
- if(ARMap!=null)
|
|
|
- ARMap.SetActive(true);
|
|
|
- SetSceneActive.active = false;
|
|
|
+ SetSceneActive.Instance.active = false;
|
|
|
}
|
|
|
}
|