// Update is called once per frame void Update() { bool touchedDown = TouchInterface.GetTouchDown(); bool touchedUp = TouchInterface.GetTouchUp(); Vector2 touchPos = TouchInterface.GetTouchPosition(); RaycastHit2D hit = Physics2D.Raycast(touchPos, Vector2.zero); if (touchedDown) { if (box == hit.collider) { mSound.playCheckSound("click"); TextAll.SetActive(false); TextCosmetic.SetActive(false); TextDanger.SetActive(false); TextDrug.SetActive(false); TextFood.SetActive(false); TextTool.SetActive(false); ResultNotFound.SetActive(false); Loading.SetActive(true); r.SetActive(false); main.SetActive(true); header.SetActive(true); returnButton.SetActive(false); rLayer.ClearContentData(); } } }
public void FinishDownload() { Debug.Log("Finish Download"); Debug.Log("contentList : " + (xmlData.contentList != null)); Debug.Log("contentListDangerRegister : " + (xmlData.contentListDangerRegister != null)); Debug.Log("contentListDangerLicense : " + (xmlData.contentListDangerLicense != null)); Debug.Log("contentListFood : " + (xmlData.contentListFood != null)); Debug.Log("contentListDrug : " + (xmlData.contentListDrug != null)); Debug.Log("contentListTool : " + (xmlData.contentListTool != null)); ResultLoading.SetActive(false); rLayer.ClearContentData(); if (xmlData.contentList != null || xmlData.contentListDangerRegister != null || xmlData.contentListDangerLicense != null || xmlData.contentListFood != null || xmlData.contentListDrug != null || xmlData.contentListTool != null) { //rLayer.setContentData(xmlData,xmlData.checktype); rLayer.checkContentData(xmlData, xmlData.checktype); } else { rLayer.setNotFound(ProductType); } }