IEnumerator GoToMSPPinfo() { yield return(new WaitForSeconds(1.0f)); InitRecog(); //StartCoroutine(StartMSPP()); Destroy(gameObject); //MainSystem.InstantiateAndAddTo(URL.PrefabURL.PANELS, "Control_Panel", MainSystem.INSTANCE.CAMERA_MAIN.gameObject); //m_controlPanel = MainSystem.InstantiateAndAddTo(URL.PrefabURL.PANELS, "Control_Panel", null); if (MainSystem.INSTANCE.IS_MSPP_TRACKED == 1) { m_controlPanel = MainSystem.InstantiateAndAddTo(URL.PrefabURL.PANELS, "Control_Panel", m_vufoCon.transform.GetChild(0).gameObject); } if (MainSystem.INSTANCE.IS_MSPP_TRACKED == 2) { m_controlPanel = MainSystem.InstantiateAndAddTo(URL.PrefabURL.PANELS, "Control_Panel", m_vufoCon.transform.GetChild(2).gameObject); } //m_controlPanel.transform.position = m_vufoCon.LISTTARGET[0].transform.position; //////[SSPARK] 모바일 버전용 임시주석(수정가능성있음) //m_controlPanel.transform.position = MainSystem.INSTANCE.CAMERA_MAIN.transform.GetChild(0).transform.position; //m_controlPanel.transform.eulerAngles = new Vector3(MainSystem.INSTANCE.CAMERA_MAIN.transform.eulerAngles.x, MainSystem.INSTANCE.CAMERA_MAIN.transform.eulerAngles.y, 0); /////// //m_controlPanel.transform.localEulerAngles = new Vector3(MainSystem.INSTANCE.CAMERA_MAIN.transform.localEulerAngles.x, MainSystem.INSTANCE.CAMERA_MAIN.transform.localEulerAngles.y, 0); }
public void OnBack(AxRButton _button) { if (m_backBtn != null) { m_backBtn(); } MainSystem.InstantiateAndAddTo(URL.PrefabURL.PANELS, "CheckLists", null); Destroy(this.gameObject); }
private IEnumerator SkipTimer() { yield return(new WaitForSeconds(6.0f)); if (null != m_actSkip) { m_actSkip(); } OnClose(); MainSystem.InstantiateAndAddTo(URL.PrefabURL.PANELS, "Warning_Panel", null); }
IEnumerator GoToFTTHinfo() { yield return(new WaitForSeconds(1.0f)); InitRecog(); Destroy(gameObject); //StartCoroutine(StartFTTH()); m_controlPanel = MainSystem.InstantiateAndAddTo(URL.PrefabURL.PANELS, "FTTHinfo", m_vufoCon.transform.GetChild(1).gameObject); //////[SSPARK] 모바일 버전용 임시주석(수정가능성있음) //m_controlPanel.transform.position = MainSystem.INSTANCE.CAMERA_MAIN.transform.GetChild(0).transform.position; //m_controlPanel.transform.eulerAngles = new Vector3(MainSystem.INSTANCE.CAMERA_MAIN.transform.eulerAngles.x, MainSystem.INSTANCE.CAMERA_MAIN.transform.eulerAngles.y, 0); ////// //m_controlPanel.transform.position = new Vector3(m_vufoCon.LISTTARGET[0].gameObject.transform.position.x * 0.1f - 0.2f + MainSystem.INSTANCE.CAMERA_MAIN.transform.position.x, m_vufoCon.LISTTARGET[0].gameObject.transform.parent.position.y * 0.1f, m_vufoCon.LISTTARGET[0].gameObject.transform.parent.position.z * 0.1f + MainSystem.INSTANCE.CAMERA_MAIN.transform.position.z + 0.3f); //m_controlPanel.transform.eulerAngles = new Vector3(0, m_vufoCon.LISTTARGET[0].gameObject.transform.eulerAngles.y, 0); }
IEnumerator GotoRemote() { yield return(ClickSound()); //gameObject.SetActive(false); m_controlPanel.ISCHECKLISTS = 0; m_controlPanel.CHECKLISTS_BTN.transform.GetChild(0).gameObject.SetActive(true); m_controlPanel.CHECKLISTS_BTN.transform.GetChild(1).gameObject.SetActive(false); m_controlPanel.REMOTESUPPORTING_PANEL = MainSystem.InstantiateAndAddTo(URL.PrefabURL.PANELS, "Remote_Supporting", null); m_controlPanel.REMOTESUPPORTING_PANEL.gameObject.transform.position = gameObject.transform.position; m_controlPanel.REMOTESUPPORTING_PANEL.gameObject.transform.rotation = gameObject.transform.rotation; m_controlPanel.ISREMOTESUP = 1; m_controlPanel.isBase = true; m_controlPanel.REMORTESUPPORTING_BTN.transform.GetChild(0).gameObject.SetActive(false); m_controlPanel.REMORTESUPPORTING_BTN.transform.GetChild(1).gameObject.SetActive(true); m_controlPanel.btn_CheckListsPos[0].gameObject.SetActive(false); m_controlPanel.btn_CheckListsPos[1].gameObject.SetActive(false); Destroy(gameObject); }
IEnumerator DashBoard() { yield return(new WaitForEndOfFrame()); if (MainSystem.INSTANCE.IS_MSPP_TRACKED == 1) { m_CheckListspanel = MainSystem.InstantiateAndAddTo(URL.PrefabURL.PANELS, "CheckLists", m_vufoCon.transform.GetChild(0).gameObject); m_CheckListspanel.gameObject.transform.position = Main_pos.transform.position; m_CheckListspanel.gameObject.transform.rotation = gameObject.transform.rotation; } if (MainSystem.INSTANCE.IS_MSPP_TRACKED == 2) { m_CheckListspanel = MainSystem.InstantiateAndAddTo(URL.PrefabURL.PANELS, "CheckLists", m_vufoCon.transform.GetChild(2).gameObject); m_CheckListspanel.gameObject.transform.position = Main_pos.transform.position; m_CheckListspanel.gameObject.transform.rotation = gameObject.transform.rotation; } //m_CheckListspanel.gameObject.transform.position = new Vector3(gameObject.transform.position.x, gameObject.transform.position.y - 0.03f, gameObject.transform.position.z); //m_CheckListspanel.gameObject.transform.position = new Vector3(m_CheckListspanel.gameObject.transform.position.x, m_CheckListspanel.gameObject.transform.position.y, m_CheckListspanel.gameObject.transform.position .z - 0.36f); btn_CheckListsPos[0].gameObject.SetActive(true); btn_CheckListsPos[1].gameObject.SetActive(false); }
public void OnClickManual(AxRButton _button) { m_audioSource.clip = m_audioClip; m_audioSource.Play(); if (m_actManual != null) { m_actManual(); } if (m_Manualpanel != null) { if (isManual == 1) { isBase = false; isManual = 0; Destroy(m_Manualpanel.gameObject); btn_Manual.transform.GetChild(0).gameObject.SetActive(true); btn_Manual.transform.GetChild(1).gameObject.SetActive(false); //[SSPARK] 패널이 destroy되어있는 상태일 때는 해당 패널의 navigation버튼 또한 비활성화 btn_ManualPos[0].gameObject.SetActive(false); btn_ManualPos[1].gameObject.SetActive(false); } else if (isManual == 2) { return; } } if (!isBase) { if (m_Manualpanel == null) { if (isManual == 0) { if (MainSystem.INSTANCE.IS_MSPP_TRACKED == 1) { isBase = true; isManual = 1; m_Manualpanel = MainSystem.InstantiateAndAddTo(URL.PrefabURL.PANELS, "Manual", m_vufoCon.transform.GetChild(0).gameObject); m_Manualpanel.gameObject.transform.position = Main_pos.transform.position; //m_Manualpanel.gameObject.transform.position = new Vector3(gameObject.transform.position.x, gameObject.transform.position.y - 0.03f, gameObject.transform.position.z); m_Manualpanel.gameObject.transform.rotation = gameObject.transform.rotation; btn_Manual.transform.GetChild(0).gameObject.SetActive(false); btn_Manual.transform.GetChild(1).gameObject.SetActive(true); btn_ManualPos[0].gameObject.SetActive(true); btn_ManualPos[1].gameObject.SetActive(false); } if (MainSystem.INSTANCE.IS_MSPP_TRACKED == 2) { isBase = true; isManual = 1; m_Manualpanel = MainSystem.InstantiateAndAddTo(URL.PrefabURL.PANELS, "Manual", m_vufoCon.transform.GetChild(2).gameObject); m_Manualpanel.gameObject.transform.position = Main_pos.transform.position; //m_Manualpanel.gameObject.transform.position = new Vector3(gameObject.transform.position.x, gameObject.transform.position.y - 0.03f, gameObject.transform.position.z); m_Manualpanel.gameObject.transform.rotation = gameObject.transform.rotation; btn_Manual.transform.GetChild(0).gameObject.SetActive(false); btn_Manual.transform.GetChild(1).gameObject.SetActive(true); btn_ManualPos[0].gameObject.SetActive(true); btn_ManualPos[1].gameObject.SetActive(false); } } } } if (isBase) { return; } }
public void OnClickPartsInfo(AxRButton _button) { m_audioSource.clip = m_audioClip; m_audioSource.Play(); if (m_actPartsInfo != null) { m_actPartsInfo(); } if (m_PartsInfopanel != null) { if (isPartsInfo == 1) { isBase = false; isPartsInfo = 0; Destroy(m_PartsInfopanel.gameObject); btn_PartsInfo.transform.GetChild(0).gameObject.SetActive(true); btn_PartsInfo.transform.GetChild(1).gameObject.SetActive(false); //[SSPARK] 패널이 destroy되어있는 상태일 때는 해당 패널의 navigation버튼 또한 비활성화 btn_PartsInfoPos[0].gameObject.SetActive(false); btn_PartsInfoPos[1].gameObject.SetActive(false); } else if (isPartsInfo == 2) { return; } } if (MainSystem.INSTANCE.IS_MSPP_TRACKED == 1) { if (!isBase) { if (m_PartsInfopanel == null) { if (isPartsInfo == 0) { isBase = true; isPartsInfo = 1; m_PartsInfopanel = MainSystem.InstantiateAndAddTo(URL.PrefabURL.PANELS, "PartsInfo", m_vufoCon.transform.GetChild(0).gameObject); //m_PartsInfopanel.gameObject.transform.position = new Vector3(m_PartsInfopanel.gameObject.transform.position.x, m_PartsInfopanel.gameObject.transform.position.y, m_PartsInfopanel.gameObject.transform.position.z + 0.5f); m_PartsInfopanel.gameObject.transform.position = new Vector3(Main_pos.transform.position.x + 0.3f, Main_pos.transform.position.y + 2.4f, Main_pos.transform.position.z + 2.6f); //m_PartsInfopanel.gameObject.transform.position = new Vector3(gameObject.transform.position.x, gameObject.transform.position.y - 0.01f, gameObject.transform.position.z); m_PartsInfopanel.gameObject.transform.rotation = gameObject.transform.rotation; btn_PartsInfo.transform.GetChild(0).gameObject.SetActive(false); btn_PartsInfo.transform.GetChild(1).gameObject.SetActive(true); btn_PartsInfoPos[0].gameObject.SetActive(true); btn_PartsInfoPos[1].gameObject.SetActive(false); } } } if (isBase) { return; } } if (MainSystem.INSTANCE.IS_MSPP_TRACKED == 2) { if (!isBase) { if (m_PartsInfopanel == null) { if (isPartsInfo == 0) { isBase = true; isPartsInfo = 1; m_PartsInfopanel = MainSystem.InstantiateAndAddTo(URL.PrefabURL.PANELS, "PartsInfo2", m_vufoCon.transform.GetChild(2).gameObject); m_PartsInfopanel.gameObject.transform.localPosition = new Vector3(-0.15f, 0, -3.1f); //m_PartsInfopanel.gameObject.transform.position = new Vector3(Main_pos.transform.position.x, Main_pos.transform.position.y, Main_pos.transform.position.z - 22.5f); m_PartsInfopanel.gameObject.transform.rotation = gameObject.transform.rotation; btn_PartsInfo.transform.GetChild(0).gameObject.SetActive(false); btn_PartsInfo.transform.GetChild(1).gameObject.SetActive(true); btn_PartsInfoPos[0].gameObject.SetActive(true); btn_PartsInfoPos[1].gameObject.SetActive(false); } } } if (isBase) { return; } } }
public void OnClickRemoteSupporting(AxRButton _button) { //if (MainSystem.INSTANCE.mQRCooltime || CRemoteProcess.Instance.mRemoteSupportMode) //*LKH* - 20190807, QR쿨타임 또는 이미 원격지원중인 경우 원격지원 버튼 무시 // return; #if UNITY_WSA_10_0 m_audioSource.clip = m_audioClip; m_audioSource.Play(); if (m_actRemoteSupporting != null) { m_actRemoteSupporting(); } if (m_RemoteSupportingpanel != null) { if (isRemoteSup == 1) { isBase = false; isRemoteSup = 0; if (!isBase && isRemoteSup == 0) { Destroy(m_RemoteSupportingpanel.gameObject); btn_RemoteSupporting.transform.GetChild(0).gameObject.SetActive(true); btn_RemoteSupporting.transform.GetChild(1).gameObject.SetActive(false); } } else if (isRemoteSup == 2) { return; } } if (!isBase) { if (m_RemoteSupportingpanel == null) { if (isRemoteSup == 0) { isBase = true; isRemoteSup = 1; m_RemoteSupportingpanel = MainSystem.InstantiateAndAddTo(URL.PrefabURL.PANELS, "Remote_Supporting", m_vufoCon.transform.GetChild(0).gameObject); m_RemoteSupportingpanel.gameObject.transform.position = new Vector3(gameObject.transform.position.x, gameObject.transform.position.y - 0.03f, gameObject.transform.position.z); m_RemoteSupportingpanel.gameObject.transform.rotation = gameObject.transform.rotation; btn_RemoteSupporting.transform.GetChild(0).gameObject.SetActive(false); btn_RemoteSupporting.transform.GetChild(1).gameObject.SetActive(true); } } } if (isBase) { return; } #endif #if UNITY_EDITOR || UNITY_ANDROID if (remote_Warning.activeSelf) { remote_Warning.SetActive(false); } else { remote_Warning.SetActive(true); } #endif }