public override void mUpdate() { base.mUpdate(); if (uguiHitUI.uiHited == true) { //Debug.Log("On uiHit"); colli = null; overView = null; return; } if (Input.GetMouseButtonUp(0)) { //Debug.Log("On GetMouseButtonUp"); if (overView != null) { undoHelper.save(); MaterialData materialData = overView.getdata(); materialData.Reset(); materialData.seekId = material.seekId; materialData.textureURI = material.textureURL; RefreshView(); } setState(FreeState3D.NAME); return; } Ray ray = inputCamera.ScreenPointToRay(Input.mousePosition); RaycastHit hit; bool hited = Physics.Raycast(ray, out hit); if (hited == false) { colli = null; overView = null; return; } if (colli == hit.collider) { return; } colli = hit.collider; overView = null; ObjView view; if (hit.collider.name == "colli") { view = hit.collider.transform.parent.GetComponent <ObjView>(); } else { view = hit.collider.GetComponent <ObjView>(); } if (view == null) { return; } else if (view is IMaterialView) { //Debug.Log("On "+ view); view3D.selectObjData = view.objData; overView = view as IMaterialView; } }